Jelajahi Sumber

fix:样式

DaMowang 3 tahun lalu
induk
melakukan
bd1fe2ceb4
2 mengubah file dengan 6 tambahan dan 20 penghapusan
  1. 5 19
      src/components/goodsList.vue
  2. 1 1
      src/static/css/public.scss

+ 5 - 19
src/components/goodsList.vue

@@ -88,13 +88,13 @@ export default {
 
 .product-title {
   width: 300upx;
-  word-break: break-all;
-  display: -webkit-box;
+  // word-break: break-all;
+  // display: -webkit-box;
   overflow: hidden;
   line-height: 1.5;
-  text-overflow: ellipsis;
-  -webkit-box-orient: vertical;
-  -webkit-line-clamp: 2;
+  // text-overflow: ellipsis;
+  // -webkit-box-orient: vertical;
+  // -webkit-line-clamp: 2;
 }
 
 .product-price {
@@ -134,18 +134,4 @@ export default {
   color: #787878;
   /* margin-bottom: 8rpx; */
 }
-
-.ellipsis1 {
-  white-space: nowrap;
-  overflow: hidden;
-  text-overflow: ellipsis;
-}
-
-.ellipsis2 {
-  display: -webkit-box;
-  overflow: hidden;
-  text-overflow: ellipsis;
-  -webkit-line-clamp: 2;
-  -webkit-box-orient: vertical;
-}
 </style>

+ 1 - 1
src/static/css/public.scss

@@ -6,7 +6,7 @@
     clear: both;
     visibility: hidden;
 }
-.nowrap {
+.ellipsis1 {
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;