table中设置tr行间距

CSS border-collapse 属性设置表格的边框是否被合并为一个单一的边框
在这里插入图片描述

border-collapse属性加上border-spacing属性就可以设置tr行间距

<table style="border-collapse:separate; border-spacing:0px 10px;">
   <tr>
    <td>那片笑声躺我想起我的那些花儿</td>
   </tr>
   <tr>
    <td>在我生命每个角落静静为我开着</td>
   </tr>
</table>

感谢分享https://blog.csdn.net/itmyhome1990/article/details/50475616

猜你喜欢

转载自blog.csdn.net/qq_32963841/article/details/82895941