Kaynağa Gözat

css样式写法优化

任一存 3 yıl önce
ebeveyn
işleme
9b75e20831
1 değiştirilmiş dosya ile 4 ekleme ve 8 silme
  1. 4 8
      src/views/ExhibitionDetail.vue

+ 4 - 8
src/views/ExhibitionDetail.vue

@@ -394,8 +394,7 @@ export default {
     margin-top: calc(1.06rem - (1.25rem - 0.75rem) / 2);
     margin-bottom: 1.41rem;
     > button {
-      width: 1px;
-      flex: 1 0 auto;
+      flex: 1 1 auto;
       background: none;
       border: none;
       font-size: 0.75rem;
@@ -410,8 +409,7 @@ export default {
     }
   }
   > .link-wrap {
-    height: 1px;
-    flex: 1 0 auto;
+    flex: 1 1 auto;
     > button {
       display: block;
       position: relative;
@@ -446,8 +444,7 @@ export default {
     }
   }
   > .video-wrap {
-    height: 1px;
-    flex: 1 0 auto;
+    flex: 1 1 auto;
     text-align: center;
     overflow: auto;
     > button {
@@ -484,8 +481,7 @@ export default {
     }
   }
   > .image-wrap {
-    flex: 1 0 auto;
-    height: 1px;
+    flex: 1 1 auto;
     .waterfall-wrap {
       height: 100%;
       .water-fall {