私はウェブサイトをやっていて、そこには3つのDIVがあります。
<div id="inner">
<div id="content" >
<div id="scroll" >
</div>
</div>
</div>
そして今、div 'inner' は幅と高さです - 自動、絶対位置。「コンテンツ」の幅は 100% です。高さ:100%; そして、「スクロール」は幅です: 96%; パディング:2%; 高さ: 96%; オーバーフロー: 自動;
html, body {width:100%; height:100%; margin:0; padding:0; border:0 none;}
#scroll
{
width: 96%;
padding:2%;
height: 96%;
overflow: auto;
}
#content {
width:100%;
height:100%;
overflow:hidden;
line-height:18px;
}
#inner {
position:absolute;
background:none;
width:auto;
height:auto;
top:40px;
bottom:85px;
right:10px;
left:300px;
}
Firefox、Opera IE8 ではすべて問題ありませんが、IE6 と IE7 では div 'scroll' が長すぎて、height:100% が機能しません。写真で見ることができます:
誰にもアイデアがありますか?私を助けてください :)