Browse Source

shops-img

youyawu 4 years ago
parent
commit
f8cfe98156
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/views/shops/index.vue

+ 7 - 1
src/views/shops/index.vue

@@ -115,8 +115,14 @@ export default class extends Vue {
       float: left;
       float: left;
       border: 1px #e5e5e5 solid;
       border: 1px #e5e5e5 solid;
       margin-left: 30px;
       margin-left: 30px;
+      position: relative;
       img {
       img {
-        width: 80%;
+        max-width: 80%;
+        max-height: 80%;
+        position: absolute;
+        top: 50%;
+        left: 50%;
+        transform: translate(-50%, -50%);
       }
       }
     }
     }
   }
   }