英文单词不换行

This commit is contained in:
2025-07-17 10:48:37 +08:00
parent a4330c1216
commit 7bf88fd578
3 changed files with 15 additions and 9 deletions

View File

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

View File

@@ -40,7 +40,7 @@
} }
.narshelpCenterdetail-app .nhlp-app-content { .narshelpCenterdetail-app .nhlp-app-content {
margin: 1.25rem; margin: 1rem;
height: 100%; height: 100%;
margin-top: 9.2vh; margin-top: 9.2vh;
} }

View File

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