参考:https://zhidao.baidu.com/question/1608232105428062147.html
1、设置导航栏div属性position:fixed;
.nav-fixed{
position:fixed;
left:0;
top:0;
height:1.36rem;
width:100%;
z-index:9999;
}
2、设置内容部分属性。
margin-top:80px;position:fixed;top:0
参考:https://zhidao.baidu.com/question/1608232105428062147.html
1、设置导航栏div属性position:fixed;
.nav-fixed{
position:fixed;
left:0;
top:0;
height:1.36rem;
width:100%;
z-index:9999;
}
2、设置内容部分属性。
margin-top:80px;position:fixed;top:0
转载于:https://www.cnblogs.com/heifengwll/p/9551860.html