美文网首页
2022-04-23 elementui 卡片

2022-04-23 elementui 卡片

作者: 1f658716b568 | 来源:发表于2022-04-23 16:14 被阅读0次
    <script src="https://cdn.bootcss.com/vue/2.5.2/vue.min.js"></script>
    <script src="//unpkg.com/element-ui@2.15.7/lib/index.js"></script>
    <div id="app">
      <div v-for="j in 8" :key="j">
    <el-card class="box-card">
      <div slot="header" class="clearfix">
        <span>{{'卡片名称'+j}}</span>
        <el-button style="float: right; padding: 3px 0" type="text">操作按钮</el-button>
      </div>
      <div v-for="o in 4" :key="o" class="text item">
        {{'列表内容 ' + o }}
      </div>
    </el-card>
      </div>
    </div>
    
    @import url("//unpkg.com/element-ui@2.15.7/lib/theme-chalk/index.css");
    .text {
        font-size: 14px;
      }
    
      .item {
        margin-bottom: 18px;
      }
    
      .clearfix:before,
      .clearfix:after {
        display: table;
        content: "";
      }
      .clearfix:after {
        clear: both
      }
    
      .box-card {
        width: 99%;
        margin:1% auto;
      }
    
    
    new Vue().$mount('#app')
    
    示例

    相关文章

      网友评论

          本文标题:2022-04-23 elementui 卡片

          本文链接:https://www.haomeiwen.com/subject/vopaertx.html