參考: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
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。