小提琴:http: //jsfiddle.net/wTtsV/
表格单元格 #t2 的大小不正确:
HTML:
<div id="table">
<div id="t1">a</div>
<div id="t2">
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
</div>
<div id="t3">a</div>
</div>
CSS:
body{
margin: 0;
}
#table{
display: table;
width: 100%;
}
#t1{
display: table-cell;
background-color: red;
}
#t2{
display: table-cell;
background-color: green;
}
#t3{
display: table-cell;
background-color: blue;
}
预期结果:
#t2
文本太长时如何隐藏?