多個el-card自適應高度對齊問題


原因:由於el-card多個自適應高度導致排列錯亂問題,

 

 

 源代碼:

1 <el-row :gutter="20" v-for="(item ,index) in deviceList" :key="index">
2     <el-col :span="6">
3         <el-card class="box-card">
4             <div class="realtime-info-head"></div>
5         </el-card>
6      </el-col>
7 </el-row>    

解決辦法:

 1 .el-row {
 2     margin-bottom: 20px;
 3     display:flex;
 4     flex-wrap: wrap;
 5   }
 6 .el-row  .el-card {
 7     min-width: 100%;
 8     height: 100%; 
 9     margin-right: 20px;
10     transition: all .5s;
11   }

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM