From a4330c1216bee0a6f334c5dedd608983481f5d37 Mon Sep 17 00:00:00 2001 From: liangjiami <2249412933@qq.com> Date: Thu, 17 Jul 2025 10:36:36 +0800 Subject: [PATCH] 1 --- public/static/index/mobile/css/public.css | 11 +++++------ public/static/index/pc/css/public.css | 11 +++++------ 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/public/static/index/mobile/css/public.css b/public/static/index/mobile/css/public.css index fb750408..3afb8b9c 100755 --- a/public/static/index/mobile/css/public.css +++ b/public/static/index/mobile/css/public.css @@ -155,11 +155,6 @@ body { tab-size: 4; -moz-tab-size: 4; text-align: left; - white-space: pre-wrap; - word-wrap: break-word; /* 兼容旧浏览器 */ - overflow-wrap: break-word; /* 优先在空格处换行,避免单词拆分 */ - word-break: normal; /* 禁止强制拆分单词 */ - hyphens: auto; /* 可选:超长单词用连字符换行(更优雅) */ } .ql-editor>* { @@ -171,7 +166,11 @@ body { .ql-editor p,.ql-editor ol,.ql-editor ul,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6 { margin: 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: break-word; /* 优先在空格处换行,避免单词拆分 */ + word-break: normal; /* 禁止强制拆分单词 */ + hyphens: auto; /* 可选:超长单词用连字符换行(更优雅) */ } .ql-editor ol,.ql-editor ul { diff --git a/public/static/index/pc/css/public.css b/public/static/index/pc/css/public.css index f846f997..8d80abe9 100755 --- a/public/static/index/pc/css/public.css +++ b/public/static/index/pc/css/public.css @@ -254,11 +254,6 @@ div{ tab-size: 4; -moz-tab-size: 4; text-align: left; - white-space: pre-wrap; - word-wrap: break-word; /* 兼容旧浏览器 */ - overflow-wrap: break-word; /* 优先在空格处换行,避免单词拆分 */ - word-break: normal; /* 禁止强制拆分单词 */ - hyphens: auto; /* 可选:超长单词用连字符换行(更优雅) */ } .ql-editor>* { @@ -268,7 +263,11 @@ div{ .ql-editor p,.ql-editor ol,.ql-editor ul,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6 { margin: 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: break-word; /* 优先在空格处换行,避免单词拆分 */ + word-break: normal; /* 禁止强制拆分单词 */ + hyphens: auto; /* 可选:超长单词用连字符换行(更优雅) */ } .ql-editor ol,.ql-editor ul {