通过 position:fixed 实现底部导航

 

HTML

<div id="footer">页脚</div>

 

CSS

#footer {
    clear: both;
    height: 35px;
    width: 100%;
    background-color: gray;
    position: fixed;
    bottom: 0;
    z-index:999;
}

 

版权声明:本文为GetcharZp原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/GetcharZp/p/11905538.html