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; /* 核心:强制列宽分配逻辑一致 */ }