【发布时间】:2012-04-14 21:34:13
【问题描述】:
我正在尝试将 100% 高度的 div 放在 display:table-cell div 中,但它似乎在 IE 中不起作用。 IE的任何解决方法?
这是我的代码:
<div style="display:table-row;">
<div style="display:table-cell; background-color:blue; border-left:solid 1px #CCC;">
<div style="position:relative; height:100%; width:100%; background-color:red;">
</div>
</div>
</div>
【问题讨论】:
-
在 div 中添加任何内容。或定义最小高度。
标签: css internet-explorer html height css-tables