From 85b3b2d4710fd165dfda2ef8241cb956c8ca20ee Mon Sep 17 00:00:00 2001 From: caiyuchao Date: Thu, 11 Sep 2025 17:09:53 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=B7=BB=E5=8A=A0=E8=AF=84?= =?UTF-8?q?=E8=AE=BA=E7=9A=84=E5=85=A8=E5=B1=80html=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/styles/src/antd/index.css | 39 ++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/packages/styles/src/antd/index.css b/packages/styles/src/antd/index.css index 4dec637..deef90c 100644 --- a/packages/styles/src/antd/index.css +++ b/packages/styles/src/antd/index.css @@ -73,3 +73,42 @@ .ant-app .form-valid-error .ant-picker-focused { box-shadow: 0 0 0 2px rgb(255 38 5 / 6%); } + +/** 富文本html显示内容 */ +.rich-text-comment-content { + + font-family:Helvetica,Arial,sans-serif; + font-size:16px; + + h1, h2, h3, h4, h5, h6, p, a, div, span, code, pre, blockquote, ul, ol, li { + all: revert; + } + +} + +/** 富文本html显示内容-表格专用 */ +.rich-text-comment-content-table { + + font-family:Helvetica,Arial,sans-serif; + font-size:16px; + + + h1, h2, h3, h4, h5, h6, p, a, div, span, code, pre, blockquote, ul, ol, li, table, thead, tbody, tr, th, td { + all: revert; + } + + li { + margin: 0; + line-height: 1.2em; + } + ul, ol { + margin: 0; + line-height: 0em; + } + + h1, h2, h3, h4, h5, h6, p { + margin: 0; + line-height: 1.2em; + } + +}