問題: テーブル行内でテーブルを幅/高さ 100% に拡大しても、IE では機能しません。どうして?!
コードは次のとおりです(http://jsfiddle.net/GBsay/2/):
html:
<body>
<div id="row">
<div id="table">
this table should be 100% width/height, green color<br/>
It works in ANY browser except IE.<br/>
WHY?!
</div>
</div>
</body>
CSS:
html, body {
position:relative;
width:100%;
height:100%;
padding:0;
margin:0;
}
body {
display:table;
}
#row {
display:table-row;
width:100%;
height:100%;
background:#f00;
}
#table {
display:table;
width:100%;
height:100%;
background:#0f0;
}
このコードは、IE (7、8、9、10) を除くすべてのブラウザーで機能します。CSSのみを使用してこれを修正する方法を知っている人はいますか?