修复ie9中的td高度

时间:2012-12-31 14:57:41

标签: html css

我在td中有动态内容 - 如果副本太长,单元格会忽略设置的高度和延伸。这只发生在ie9。

这是我的css

table tr {
min-height: 58px;
height: 58px;  overflow:hidden!important;
}
table td {
border-right: 1px solid #CCCCCC;
border-bottom: 1px solid #CCCCCC;
padding: 0 15px 0 15px;  overflow:hidden!important; height: 58px; white-space:wrap;
}

不太确定如何解决?

1 个答案:

答案 0 :(得分:1)

请勿使用td来布置内容。仅将表用于表格数据。使用跨度和div以及适当的css。

这只是您必须接受并适当编码的浏览器之一。我确信它会在ie14中被修复,但其他东西当然会中断;)

相关问题