浏览代码

轮播图适配

yx 4 年之前
父节点
当前提交
c8c5afdb49
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/components/Rotation/src/rotation.vue

+ 5 - 0
src/components/Rotation/src/rotation.vue

@@ -93,6 +93,10 @@ export default {
     display: flex;
     justify-content: center;
     align-items: center;
+    // 轮播图适配
+    /deep/ .el-carousel__container {
+        height: 100% !important;
+    }
     .rotationCon {
         height: 100%;
         width: 100%;
@@ -103,6 +107,7 @@ export default {
         // height: 100%;
         // object-fit: fill;
         // min-width: 100%;
+        width: 100%;
         min-height: 100%;
     }
 }