通过 position:fixed 实现底部导航

通过 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;
}
原文地址:https://www.cnblogs.com/GetcharZp/p/11905538.html