HTML-基于bootstrap的table表格

<table class="table table-bordered table-hover table-striped">//表格
        <thead>    //表头
            <tr>  //表头---行
                <th>Id</th>   //表头--头部单元格
                <th>Name</th>
                <th>Ctime</th>
                <th>Operation</th>
            </tr>
        </thead>
        <tbody>   //表体
            <tr v-for="item in search(keywords)" v-bind:key="item.id">    //表数据---行
                <td>{{item.id}}</td>   //每行的 数据单元格
                <td v-text="item.name"></td>
                <td>{{item.ctime}}</td>
                <td>
                    <a href="" v-on:click.prevent="del(item.id)">删除</a>
                </td>
            </tr>
        </tbody>
    </table>

  

<table class="table table-bordered table-hover table-striped">:基于bootstrap的表格,类有基础样式.table,4种附加样式(.table-bordered带边框的表格、
.table-striped带背景条纹的表格、.table-hover鼠标悬停高亮的表格、.table-condensed紧凑型表格),以及支持响应式布局的.table-responsive的容器样式。

 

转载于:https://www.cnblogs.com/minyDong/p/11260255.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值