英文单词不换行

This commit is contained in:
2025-07-17 10:48:37 +08:00
parent 6b8241d2c1
commit 1358274b1e
3 changed files with 15 additions and 9 deletions

View File

@@ -155,6 +155,11 @@ body {
tab-size: 4;
-moz-tab-size: 4;
text-align: left;
word-wrap: normal;
overflow-wrap: normal;
word-break: normal;
hyphens: manual;
white-space: normal;
}
.ql-editor>* {
@@ -167,10 +172,8 @@ body {
margin: 0;
padding: 0;
counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
word-wrap: break-word; /* 兼容旧浏览器 */
overflow-wrap: break-word; /* 优先在空格处换行,避免单词拆分 */
word-break: normal; /* 禁止强制拆分单词 */
hyphens: auto; /* 可选:超长单词用连字符换行(更优雅) */
overflow-wrap: anywhere;
word-break: keep-all;
}
.ql-editor ol,.ql-editor ul {