[英]side effects of always using word-wrap: break-word
It seems like word-wrap: break-word
(and its other browser specific versions) are commonly used for user generated comment that may run long. 好像是
word-wrap: break-word
(及其其他浏览器特定版本)通常用于用户生成的注释,可能会运行很长时间。 It seems to me that doing word-wrap: break-word
on all the entire webpage would be a convenient and relatively easy safety net without having to specifying that everywhere. 在我看来,在所有网页上进行
word-wrap: break-word
将是一个方便且相对容易的安全网,而无需在所有地方都指定。 I did a quick sanity check and can't really think of how this may break things. 我做了一个快速的理智检查,真的没想到这怎么会破坏事情。 Are there any side effects to watch out for before doing a
* {word-wrap: break-word}
? 在进行
* {word-wrap: break-word}
之前是否需要注意任何副作用?
There shouldn't be any side-effects if your goal is to break long words and display them on the next line... This is what I mean: 如果您的目标是打断长字并在下一行显示它们,那么应该没有任何副作用。这就是我的意思:
abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
will become 会变成
abcde ABCDE
fghij FGHIJ
klmno KLMNO
pqrst PQRST
uvwxy uvwxy
z ž
Or something like that depending on the width of your page, ie, the word breaks. 或类似的情况取决于您页面的宽度,即单词中断。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.