头部使用fixed布局时候
下面的css要使用dadding-top 来向下移动
不能使用top:141px;这样会导致部分的内容被隐藏
.header{ position:fixed; }
.content{ position: relative; padding-top: 141px; }
外层使用
position: relative;
头部使用fixed布局时候
下面的css要使用dadding-top 来向下移动
不能使用top:141px;这样会导致部分的内容被隐藏
.header{ position:fixed; }
.content{ position: relative; padding-top: 141px; }
外层使用
position: relative;
转载于:https://www.cnblogs.com/silences/p/8484406.html