简体   繁体   English

CSS包装行为空白

[英]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>&nbsp;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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM