From de4e692bce2546c19f5b82caf94bcba28c18aa8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E8=AF=9A?= Date: Mon, 12 Jan 2026 19:19:05 +0800 Subject: [PATCH] fix --- Web/src/styles/rich-content.css | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Web/src/styles/rich-content.css b/Web/src/styles/rich-content.css index 8df17ba..423b7e1 100644 --- a/Web/src/styles/rich-content.css +++ b/Web/src/styles/rich-content.css @@ -55,27 +55,23 @@ /* 表格样式优化 - 确保表格独立滚动且列对齐 */ .rich-html-content table { - display: table; + display: block; width: 100%; border-collapse: collapse; margin: 8px 0; background: var(--van-background-2); border-radius: 4px; border: none; - table-layout: fixed; -} - -.rich-html-content table { overflow-x: auto; /* 仅表格内部横向滚动 */ -webkit-overflow-scrolling: touch; overflow-y: auto; max-height: 35vh; - display: block; } .rich-html-content thead, .rich-html-content tbody { display: table; + width: 100%; table-layout: fixed; /* 核心:强制列宽分配逻辑一致 */ }