[英]Break lines in html column
我在表格中有以下文字:
<td style="white-space: nowrap">Some value:Another Value; Person-1:Person2</td>
我的问题是这个Some value:Another Value; Person-1:Person2
Some value:Another Value; Person-1:Person2
在该列内显示为一行。 我怎么能把它折断呢;
? 所以它仍然在同一行/列中,但在列中还是2行?
列表项标签呢?
我想你应该去做。
使用<br />
创建明确的换行符:
<td style="white-space: nowrap">Some value:Another Value;<br />Person-1:Person2</td>
这应该作为解决方案
<td>
<span style="white-space: nowrap">Some value:Another Value;</span>
<span style="word-break:break-all;">Person-1:Person2</span>
</td>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.