Commit 862f9ad6 by pangchong

style(editor): 优化表格样式及打印分页效果

- 调整表格布局为自动,增强适应性
- 减小表格单元格内边距,提升内容密度
- 添加单元格内文字换行,避免内容溢出
- 优化打印样式,防止表格行和图片跨页中断
parent 59372871
...@@ -264,17 +264,19 @@ export function useEditor() { ...@@ -264,17 +264,19 @@ export function useEditor() {
min-width: 0 !important; min-width: 0 !important;
margin-top: 10px !important; margin-top: 10px !important;
margin-bottom: 20px !important; margin-bottom: 20px !important;
table-layout: auto !important;
} }
table.cals-table th, table.cals-table td { table.cals-table th, table.cals-table td {
border: 1px solid #000000 !important; border: 1px solid #000000 !important;
padding: 8px 10px !important; padding: 6px 8px !important;
word-break: break-word !important;
} }
@media print { @media print {
body { body {
padding: 0 !important; padding: 0 !important;
} }
/* 打印优化:避免表格行或图片在中间被截断分页 */ /* 打印优化:避免表格行或图片在中间被截断分页 */
table, tr, img { tr, img {
page-break-inside: avoid !important; page-break-inside: avoid !important;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment