移動端html5頁面導航欄懸浮遮擋內容第一行解決辦法


參考: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刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM