前言
把 footer 区固定在底部,无论页面高度多宽,它始终在底部不会变,就像移动端的菜单一样。
codeDOCTYPE html>
document
#demo{
position: fixed;
left: 0px;
bottom: 0px;
width: 100%;
height: 50px;
background-color: #eee;
z-index: 9999;
}
我是footer