0
我有以下HTML明确两个显示表后
<div id="parent">
<div id="one">one</div>
<div id="two">two</idv>
</div>
<div id="other">some</div>
不工作,这是CSS
#one, #two{
display: table-cell;
vertical-align: middle;
height: 47px;
background: red;
}
#parent
{
display:table;
border-collapse: separate;
border-spacing: 10px 0;
}
#other{
background: blue;
height: 200px;
}
如问题描述清楚这两个不工作,但行为像格前就好像表格一样。解决方法是删除display: table;
。但我想知道是否有没有删除display: table;
和display: table-cell;
从#one,#two
股利。