您的位置:首页 > 其它

为table-row设置border无效解决办法

2016-01-26 12:58 357 查看
<div class="table">
<div class="row">
<div class="cell">
<p>Blah blah</p>
</div>
<div class="cell">
<p>Blah blah</p>
</div>
<div class="cell">
<p>Blah blah</p>
</div>
</div>
</div>

.table {
display: table;
width: 100%;
}

.row {
display: table-row;
border-bottom: 1px solid black;
}

.cell {
display: table-cell;
width: 33%;
}
为table添加
border-collapse: collapse
属性即可。
http://stackoverflow.com/questions/5542418/div-table-row-border/5542561 http://www.frontopen.com/331.html http://www.runoob.com/xslfo/obj-table-row.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: