Browse Source

修改图片显示尺寸

asd123a20 1 year ago
parent
commit
aeea23127f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/views/Home.vue

+ 2 - 1
src/views/Home.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="home">
-    <el-carousel height="80px" class="hfbox" direction="vertical" autoplay indicator-position="none" :interval="3000">
+    <el-carousel height="100px" class="hfbox" direction="vertical" autoplay :interval="3000">
       <el-carousel-item>
         <a class="hf" @click="imgClick('ztjy', 'zt')">
           <img src="../assets/hf1.jpg" class="hfimg">
@@ -184,6 +184,7 @@ export default {
     margin: 0.5% auto;
     .hf {
       width: 100%;
+      height: 100px;
       cursor: pointer;
       .hfimg {
         width: 100%;