通过 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;
}

 

Aspire to inspire until I expire