diff --git a/src/app.css b/src/app.css index 5b226db..5622e56 100644 --- a/src/app.css +++ b/src/app.css @@ -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;