mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2026-03-13 15:20:23 +00:00
fix: OFD 表格竖线溢出修复 (#723)
cnofd 库渲染 OFD 表格时,为每个元素创建独立 SVG 容器并设置 inline style overflow:visible。当表格中间竖线的 path 元素 y 坐标超过 SVG 容器高度时,线条会溢出到表格底部边框之外。 修复方案:对 #content 下的 SVG 元素强制 overflow:hidden, 使用 !important 覆盖 inline style,精确裁剪超出部分。 Closes #xxx
This commit is contained in:
@@ -202,6 +202,13 @@ body { margin: 0; }
|
||||
src: url(./fonts/simhei.woff);
|
||||
}
|
||||
|
||||
/* OFD 表格竖线溢出修复 */
|
||||
/* cnofd 库在 SVG 上设置了 inline style overflow:visible,导致表格中间竖线的 */
|
||||
/* path 元素超出 SVG 容器高度后仍然可见。使用 !important 覆盖 inline style。 */
|
||||
#content svg {
|
||||
overflow: hidden !important;
|
||||
}
|
||||
|
||||
.gray {
|
||||
-webkit-filter: grayscale(100%);
|
||||
-moz-filter: grayscale(100%);
|
||||
|
||||
Reference in New Issue
Block a user