Ver Fonte

商店热搜页修复样式错乱

wyy há 1 ano atrás
pai
commit
153d675641

+ 9 - 2
front-end/mall4uni/src/pages/prod-classify/prod-classify.scss

@@ -1,6 +1,6 @@
 .container {
-  background: #fff;
-  margin: 7px;
+  background: #f4f4f4;
+  padding: 7px;
 }
 .line-fix {
   width: 100%;
@@ -19,6 +19,13 @@
   flex-wrap: wrap;
   justify-content: space-between;
 }
+:deep(.prod-items) {
+  display: inline-block;
+  width: 345rpx !important;
+  &:nth-child(2n) {
+    margin-left: 30rpx;
+  }
+}
 /* 空 */
 .empty {
   display: block;