diff --git a/app/assets/css/typography.css b/app/assets/css/typography.css index 62b3f10..a222270 100644 --- a/app/assets/css/typography.css +++ b/app/assets/css/typography.css @@ -47,7 +47,49 @@ margin: 20px 0; } +/* 表格基础样式 */ .html-typography table { width: 100%; + border-collapse: collapse; border: 1px solid var(--el-border-color); + margin: 1em 0; + table-layout: auto; + font-size: 14px; +} + +/* 单元格通用样式 */ +.html-typography th, +.html-typography td { + border: 1px solid var(--el-border-color); + padding: 8px 12px; + text-align: left; + vertical-align: middle; + word-break: break-word; +} + +/* 表头样式 */ +.html-typography th { + background-color: var(--el-fill-color-light); + color: var(--el-text-color-primary); + font-weight: 600; +} + +/* 行 hover 效果 */ +.html-typography tbody tr:hover { + background-color: var(--el-fill-color-light-hover); +} + +/* 交替行背景 */ +.html-typography tbody tr:nth-child(odd) { + background-color: var(--el-fill-color-lighter); +} + +/* 表格标题(如有 caption) */ +.html-typography table caption { + caption-side: top; + text-align: left; + padding: 8px 0; + font-size: 14px; + font-weight: 600; + color: var(--el-text-color-primary); } diff --git a/app/components/pages/products/ProductDetail.vue b/app/components/pages/products/ProductDetail.vue index 4f32ceb..903bb7e 100644 --- a/app/components/pages/products/ProductDetail.vue +++ b/app/components/pages/products/ProductDetail.vue @@ -3,13 +3,14 @@ -
-
- -
+
+ + + + + + + diff --git a/app/components/pages/solutions/SolutionDetail.vue b/app/components/pages/solutions/SolutionDetail.vue index 9bcb209..96bbd77 100644 --- a/app/components/pages/solutions/SolutionDetail.vue +++ b/app/components/pages/solutions/SolutionDetail.vue @@ -6,10 +6,11 @@
-
-
- -
+
+ + + +
diff --git a/app/components/shared/QuestionList.vue b/app/components/shared/QuestionList.vue index fb8dd5b..40ff8f2 100644 --- a/app/components/shared/QuestionList.vue +++ b/app/components/shared/QuestionList.vue @@ -9,13 +9,14 @@ :name="question.id" > -
-
- -
+
+ + + + + + +
diff --git a/app/pages/about/index.vue b/app/pages/about/index.vue index 52f778e..ff613a8 100644 --- a/app/pages/about/index.vue +++ b/app/pages/about/index.vue @@ -5,13 +5,14 @@
-
-
- -
+
+ + + + + + +
{{ $t('learn-more') }} diff --git a/app/pages/support/contact-us.vue b/app/pages/support/contact-us.vue index bc80542..7812c9c 100644 --- a/app/pages/support/contact-us.vue +++ b/app/pages/support/contact-us.vue @@ -8,13 +8,14 @@
-
-
- -
+
+ + + + + + +