[英]Break lines in html column
I have text in a table as follows: 我在表格中有以下文字:
<td style="white-space: nowrap">Some value:Another Value; Person-1:Person2</td>
The problem I have is that this Some value:Another Value; Person-1:Person2
我的问题是这个
Some value:Another Value; Person-1:Person2
Some value:Another Value; Person-1:Person2
is displayed as a single line inside the column. Some value:Another Value; Person-1:Person2
在该列内显示为一行。 How could I break-line it on ;
我怎么能把它折断呢
;
? ? So it is still in the same row/column but as 2 lines in the column?
所以它仍然在同一行/列中,但在列中还是2行?
What about list item tag? 列表项标签呢?
I think you should go for it. 我想你应该去做。
使用<br />
创建明确的换行符:
<td style="white-space: nowrap">Some value:Another Value;<br />Person-1:Person2</td>
This should work as a solution 这应该作为解决方案
<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.