私は、ページの幅にまたがるフッタを持っています。フッタ内には、基本的にフッタ/ページの全幅を塗りつぶすフッタ背景画像として機能するものがある。しかし、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