Bootstrap CSS 表格

中文官方资料:http://v3.bootcss.com/css/#tables
此博客用来记录

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="bootstrap.min.css">
</head>
<body>
    <div class="table-responsive">
        <!--表格的响应式:外层div添加 class="table-responsive"-->
        <!--table-striped 斑马线表格   table-bordered 加边框表格 table-hover 鼠标经过时高亮的表格   table-condensed 紧凑型表格-->
        <table class="table table-bordered">
            <!--表格标题  thead-->

            <!--单元格状态:active success info warning danger-->

            <thead>
                <tr class="active">
                    <th>表格标题</th>
                    <th>表格标题</th>
                    <th>表格标题</th>
                </tr>
            </thead>

            <!--表格内容-->
            <tbody>
                <tr class="success">
                    <th>表格单元格</th>
                    <th>表格单元格</th>
                    <th>表格单元格</th>
                </tr>
                <tr class="info">
                    <th>表格单元格</th>
                    <th>表格单元格</th>
                    <th>表格单元格</th>
                </tr>
                <tr class="warning">
                    <th>表格单元格</th>
                    <th>表格单元格</th>
                    <th>表格单元格</th>
                </tr>

                <tr class="danger">
                    <th>表格单元格</th>
                    <th>表格单元格</th>
                    <th>表格单元格</th>
                </tr>
            </tbody>
        </table>
    </div>
</body>
</html>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值