feat: 为文章内容添加表格样式支持
continuous-integration/drone/push Build is passing

This commit is contained in:
seahi committed 2026-09-23 10:42:32 +08:00
1 parent c8dda536ca
commit 8f2265c5bd
1 file changed
+26
+26
View File
@@ -659,6 +659,32 @@ body.single-col .post-list {
border: 1px solid rgba(0, 0, 0, 0.1);
}
.article-content table {
width: 100%;
max-width: 100%;
border-collapse: collapse;
margin: 1.5rem 0;
display: block;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.article-content th,
.article-content td {
border: 1px solid var(--border-color);
padding: 0.6rem 1rem;
}
.article-content th {
background-color: rgba(0, 0, 0, 0.04);
font-weight: 600;
text-align: left;
}
.article-content tbody tr:nth-child(even) {
background-color: rgba(0, 0, 0, 0.02);
}
/* 适配 VOID 的图文混排结构 (figure + figcaption) */
.article-content figure {
margin: 1.5rem 0;