typora-theme-phycat icon indicating copy to clipboard operation
typora-theme-phycat copied to clipboard

表格列与列之间分割不明显,可以将表格优化下吗?

Open hhs1231 opened this issue 9 months ago • 2 comments

这个主题很漂亮,但是我发现当表格内容较多时,列与列之间看不到分隔,内容和粘在一起了一样,可以把表格优化一下吗?

hhs1231 avatar Mar 07 '25 19:03 hhs1231

自己设置一下吧,我觉得没有分割线文字比较突出好看一点

sumruler avatar Mar 12 '25 08:03 sumruler

可以打开pycat.light.css文件,找到和table有关的文件,注释掉,替换为以下的代码 ` #write table{ margin: 0.8em 0; }

#write table { padding: 0; word-break: initial; text-align: center; } #write table tr { border: 1px solid #dfe2e5; margin: 0; padding: 0; line-height:20px; } #write table tr:nth-child(2n), thead { background-color: skyblue; } #write table th { font-weight: bold; border: 1px solid #dfe2e5; border-bottom: 0; margin: 0; padding: 6px 13px; } #write table td { border: 1px solid #dfe2e5; margin: 0; padding: 6px 13px; } #write table th:first-child, #write table td:first-child { margin-top: 0; } #write table th:last-child, #write table td:last-child { margin-bottom: 0; }` 整体的效果是这样的:

Image

也可以修改自己喜欢的表格配色

zkLyons avatar May 26 '25 13:05 zkLyons