我有一个跨越页面宽度的页脚。在页脚内有一个实质上充当页脚背景图像的页面,填充页脚/页面的整个宽度。但是,在IE中,页脚下面有一些空白区域,应该只是与页面底部齐平。在Firefox,Safari等中似乎很好。以下是我拥有的任何建议吗?相对定位页脚 - IE中的空白空间?
<body>
<div id='container'>
<div id='content'></div
</div>
<div id='footer'></div>
</body>
CSS是:
html {
font:62.5% 'Helvetica Neue';
color:#777676;
margin:0;
padding:0;
}
body {
font-size:1.8em; /* 18 px */
line-height:1.2em;
margin:0;
padding:0;
width:100%;
}
#container {
width:906px;
margin:0 auto;
height:100%;
position:relative;
z-index:10;
}
#content {
padding-top:20px;
}
div#footer {
position:relative;
bottom:0;
clear:both;
width:100%;
z-index:1;
}
div#footer img {
width:100%;
border:0 none;
}
现场演示这将不胜感激。 – Blender