Erlo

bootstrap表格样式

2020-10-14 19:30:47 发布   294 浏览  
页面报错/反馈
收藏 点赞

DOCTYPE html>
html>
    head>
        meta charset="utf-8" />
        meta name="viewport" content="width=device-width, initial-scale=1">
        title>我是中国人title>

         新 Bootstrap 核心 CSS 文件 -->
        link href="css/bootstrap.min.css" rel="stylesheet">

         最新的 Bootstrap 核心 JavaScript 文件 -->
        script src="js/bootstrap.min.js">script>

        script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js">script>
    head>
    body>
        table border="" cellspacing="" cellpadding="" class="table table-bordered table-hover table-striped table-condensed">
            tr>
                th>名称th>
                th>数量th>
                th>单价th>
            tr>
            tr>
                td>玉米td>
                td>10td>
                td>3td>
            tr>
            tr>
                td>大豆td>
                td>20td>
                td>60td>
            tr>
        table>
    body>
html>

image

table:表格的基类,其他样式都基于table

table-bordered:给表格加外边框

table-hover:鼠标悬停变色

table-striped:斑马线效果,隔行换色

table-condensed:紧凑布局

登录查看全部

参与评论

评论留言

还没有评论留言,赶紧来抢楼吧~~

手机查看

返回顶部

给这篇文章打个标签吧~

棒极了 糟糕透顶 好文章 PHP JAVA JS 小程序 Python SEO MySql 确认