バックグラウンド
固定 DIV を使用して、クライアントに対してかなり複雑なレイアウトを行う必要があります。IE8、FF3、および Chrome ではすべて問題ありませんが、IE7 ではすべてが台無しになります
編集:固定 DIV は必須です。スクロールする必要があるのはコンテンツ DIV のみです (これは仕様です、申し訳ありません)。
HTML と CSS コード
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>
test
</title>
<!--[if lt IE 8]>
<![endif]-->
<!--[if lt IE 7]>
<![endif]-->
</head>
<body style="margin: 10px;">
<div id="wrapper" style="width: 960px; margin: 0 auto; position: relative; border: 1px solid red; overflow: hidden;">
<div id="header" style="position: fixed; width: 185px; height: 600px; top: 10px; border: 1px solid blue;">
header
</div>
<div id="content" style="width: 680px; float: left; background: white; margin-left: 185px; min-height: 600px; border: 1px solid lime;">
content
</div>
<div id="rightcolumn" style="position: fixed; top: 10px; width: 90px; margin-left: 865px; height: 600px;border: 1px solid maroon;">
right
</div>
</div>
</body>
</html>
幅 IE8、FF3、クローム
IE8、FF3、Chrome http://img39.imageshack.us/img39/406/firefoxkpd.jpg
幅IE7
IE7 http://img23.imageshack.us/img23/1315/ie7l.jpg
ノート
要素をサポートしていないことはわかっているため、IE6 についてはそれほど心配していませんFixed
が、修正方法を知っていれば、すばらしいことです。
質問
- 問題を解決するために IE7 のバグについて知っておくべきことは何ですか?
- ラッパーに対して相対的にヘッダー列の左を参照するにはどうすればよいですか
- ヘッダー列が右に移動し、右の列が消えるのはなぜですか?