Skip to content

Commit

Permalink
add table format in documents/scss/_variables_project.scss; this path…
Browse files Browse the repository at this point in the history
… is configured in documents/hugo.toml
  • Loading branch information
cjh authored and cjh committed Dec 17, 2024
1 parent cf5aa7b commit 38b6e29
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions documents/assets/scss/_variables_project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,17 @@ Add styles or override variables from the theme here.
*/

table {
width: 100% !important;
border-collapse: collapse !important; /* 合并边框,消除边框间隙 */
}

th, td {
border: 1px solid #000 !important; /* 确保所有单元格都有边框 */
padding: 12px !important; /* 设置内边距 */
text-align: left !important ; /* 文本左对齐,可根据需求更改 */
}

th {
font-weight: bold !important; /* 加粗表头文本 */
}

0 comments on commit 38b6e29

Please sign in to comment.