فهرست منبع

修改产品样式

heketai 2 روز پیش
والد
کامیت
8bc870ea8e
2فایلهای تغییر یافته به همراه8 افزوده شده و 3 حذف شده
  1. 2 1
      assets/css/common.scss
  2. 6 2
      pages/category/index.vue

+ 2 - 1
assets/css/common.scss

@@ -694,6 +694,7 @@ a {
     justify-content: center;
     justify-content: center;
     padding: 10px 0;
     padding: 10px 0;
     p {
     p {
+      font-size: 12px;
       display: flex;
       display: flex;
       flex-direction: column;
       flex-direction: column;
       align-items: center;
       align-items: center;
@@ -703,7 +704,7 @@ a {
     }
     }
     & > img {
     & > img {
       min-width: 60px;
       min-width: 60px;
-      width: 60px;
+      width: 40px;
       height: 60px;
       height: 60px;
       transition: all 0.4s ease-out;
       transition: all 0.4s ease-out;
       border-radius: 4px 4px 0 0;
       border-radius: 4px 4px 0 0;

+ 6 - 2
pages/category/index.vue

@@ -166,13 +166,15 @@ async function getCategory1Fun() {
   height: 60px;
   height: 60px;
   background: #f7f7f7;
   background: #f7f7f7;
   border-bottom: 4px solid #fff;
   border-bottom: 4px solid #fff;
+  margin: 0 auto; /* 容器自身居中 */
+  text-align: center; /* 文字内容水平居中 */
 
 
   a {
   a {
     border: 1px solid #e8e8e8;
     border: 1px solid #e8e8e8;
     color: #333;
     color: #333;
     border-radius: 3px;
     border-radius: 3px;
     padding: 0 30px;
     padding: 0 30px;
-    font-size: 14px;
+    font-size: 13px;
     height: 30px;
     height: 30px;
     display: flex;
     display: flex;
     justify-content: center;
     justify-content: center;
@@ -195,6 +197,8 @@ async function getCategory1Fun() {
   padding-bottom: 1px;
   padding-bottom: 1px;
   display: flex;
   display: flex;
   position: relative;
   position: relative;
+  margin: 0 auto; /* 容器自身居中 */
+  text-align: center; /* 文字内容水平居中 */
 
 
   .cate-nav {
   .cate-nav {
     width: 130px;
     width: 130px;
@@ -210,7 +214,7 @@ async function getCategory1Fun() {
       justify-content: center;
       justify-content: center;
       width: 100%;
       width: 100%;
       height: 50px;
       height: 50px;
-      font-size: 14px;
+      font-size: 13px;
       color: #606266;
       color: #606266;
       position: relative;
       position: relative;