我在我的网站上使用Twitter引导程序,而且我的跨度可能包含很长的字,我需要打破它.我用这个Css但不工作?什么问题?
.fidDivComment {
white-space: pre-wrap;
display: inline-block;
}
Run Code Online (Sandbox Code Playgroud)

Ada*_*son 28
您需要将此添加到CSS的那个范围内
span {
-ms-word-break: break-all;
word-break: break-all;
/* Non standard for webkit */
word-break: break-word;
-webkit-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;
}
Run Code Online (Sandbox Code Playgroud)
请参阅此文章以获得解释.