[英]CSS wrap behaviour white-space
I have the following: 我有以下内容:
I don't want to break the tags, so I specified the white-space: nowrap
option to the span. 我不想破坏标签,所以我为span指定了
white-space: nowrap
选项。 However, now I have the following problem: the line doesn't break at all. 但是,现在我有以下问题:该行根本不会中断。
How can I fix this? 我怎样才能解决这个问题?
Relevant HTML: 相关HTML:
<td class="tags-column"> <span class="library-tags"><i class="fa fa-tag"></i> test</span> .... </td>
Add the following style to .library-tags
: 在
.library-tags
添加以下样式:
.library-tags {
display: inline-block;
float: left
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.