From 6c176a10398136cc100da682b41d6d62f55855ce Mon Sep 17 00:00:00 2001 From: liangjiami <2249412933@qq.com> Date: Wed, 16 Jul 2025 10:12:28 +0800 Subject: [PATCH] 1 --- public/static/index/mobile/css/public.css | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/public/static/index/mobile/css/public.css b/public/static/index/mobile/css/public.css index 1f0832ef..c883c4af 100755 --- a/public/static/index/mobile/css/public.css +++ b/public/static/index/mobile/css/public.css @@ -156,7 +156,10 @@ body { -moz-tab-size: 4; text-align: left; white-space: pre-wrap; - word-wrap: break-word + word-wrap: break-word; /* 兼容旧浏览器 */ + overflow-wrap: break-word; /* 优先在空格处换行,避免单词拆分 */ + word-break: normal; /* 禁止强制拆分单词 */ + hyphens: auto; /* 可选:超长单词用连字符换行(更优雅) */ } .ql-editor>* { @@ -563,15 +566,27 @@ body { } .ql-editor .ql-size-small { - font-size: .75em + font-size: .75em; + word-wrap: break-word; /* 兼容旧浏览器 */ + overflow-wrap: break-word; /* 优先在空格处换行,避免单词拆分 */ + word-break: normal; /* 禁止强制拆分单词 */ + hyphens: auto; /* 可选:超长单词用连字符换行(更优雅) */ } .ql-editor .ql-size-large { - font-size: 1.5em + font-size: 1.5em; + word-wrap: break-word; /* 兼容旧浏览器 */ + overflow-wrap: break-word; /* 优先在空格处换行,避免单词拆分 */ + word-break: normal; /* 禁止强制拆分单词 */ + hyphens: auto; /* 可选:超长单词用连字符换行(更优雅) */ } .ql-editor .ql-size-huge { - font-size: 2.5em + font-size: 2.5em; + word-wrap: break-word; /* 兼容旧浏览器 */ + overflow-wrap: break-word; /* 优先在空格处换行,避免单词拆分 */ + word-break: normal; /* 禁止强制拆分单词 */ + hyphens: auto; /* 可选:超长单词用连字符换行(更优雅) */ } .ql-editor .ql-direction-rtl {