我想用一个tr拆分一个表,单元格必须拆分成两半,然后放到下一行。
示例:
<table>
<tr>
<td>
1 Content content Content content Content content Content content
2 Content content Content content Content content Content content
3 Content content Content content Content content Content content
4 Content content Content content Content content Content content
</td>
</tr>
</table>
结果输入:
<table>
<tr>
<td>
1 Content content Content content Content content Content content
2 Content content Content content Content content Content content
</td>
</tr>
<tr>
<td>
3 Content content Content content Content content Content content
4 Content content Content content Content content Content content
</td>
</tr>
</table>
如果是多个td,则将具有多个td的行全部拆分为两半
1条答案
按热度按时间dy1byipe1#
鉴于我所掌握的最少信息,您可以尝试以下操作