0
我有一些divs,我想要形成表格样式。如何设计div元素以形成表格
<div style="display: table;">
<div style="display: table-row;">
<div style="display: table-cell;">
left column
</div>
<div style="display: table-cell;">
right column
</div>
</div>
<div style="display: table-row;">
<div style="display: table-cell;background-color:yellow">
one column on this row
</div>
</div>
</div>
我需要第一行两列,并在第二行一列,这将是全宽,就像我们做colspan="2"
。但是,我们可以做什么样的风格吗?