瀏覽代碼

修改图片显示格式

wyling 4 年之前
父節點
當前提交
f1fdc62f91
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/views/carousel/carousel/index.vue

+ 2 - 0
src/views/carousel/carousel/index.vue

@@ -338,5 +338,7 @@ export default {
 <style lang="scss" scoped>
 .banner {
   width: 100%;
+  height: 100px;
+  object-fit: contain;
 }
 </style>