有人可以告诉我为什么页脚出现在页面顶部,而看不到页眉或LayoutDiv9吗?
这是我添加的第二个CSS工作表,第一个是自动添加的“流体网格布局” CSS工作表,我完全没有改动。
@charset "utf-8";
/* CSS Document */
#Header {
position: fixed;
height: 75px;
margin-top: 0;
width: 100%;
z-index: 10000;
background:#FFF
}
#LayoutDiv1 {
position: fixed;
height: 30px;
margin-top: 75px;
width: 100%;
z-index: 10002;
background:#FFF
}
#LayoutDiv3 {
margin-top: 105px;
width: 100%;
z-index: 10004;
background:#FFF
}
#LayoutDiv9 {
position:fixed;
height: 30px
margin-bottom:40px;
z-index:10006;
background:#FFF
}
#Footer {
position:fixed;
height: 40px
margin-bottom:0;
z-index:10008;
background:#FFF
}
任何帮助将不胜感激。谢谢!
您必须使用top
代替margin-top
,bottom
而是margin-bottom
这样:
#Footer {
position:fixed;
height: 40px
bottom:0;
z-index:10008;
background:#FFF
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句