我想知道是否有可能在使用wordpress时控制排版?例如,如果一个单词不适合一行,它将被连字符连接,并且不会跳到另一行。我正在为客户做一个网站,希望那些不适合行的单词可以用连字符连接。
更新:
p { hyphens: auto; margin-bottom:24px; font-family:candara,arial,sans-serif; color: #000000; font-weight: 300; }连字符: auto;,不起作用
发布于 2015-05-13 02:32:27
听起来您可能已经尝试过这些方法,但是CSS Tricks对连字符属性是如何依赖于语言给出了更全面的解释。不同的语言对连字符有不同的默认行为。此外,浏览器对连字符属性的支持是a little spotty,Chrome只支持"none“值。
发布于 2017-05-30 00:38:31
我在这里找到了这个问题的一个好答案:https://justmarkup.com/log/2015/07/dealing-with-long-words-in-css/
.hyphenate {
overflow-wrap: break-word;
word-wrap: break-word;
-webkit-hyphens: auto;
-ms-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;
}https://stackoverflow.com/questions/25997330
复制相似问题