加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

twitter-bootstrap – 使用Twitter Bootstrap将样式应用到表

发布时间:2020-12-17 23:41:34 所属栏目:安全 来源:网络整理
导读:有谁知道是否可以应用样式表与Twitter Bootstrap?我可以看到一些表的例子在一些较旧的教程,但不是在Bootstrap网站本身。 我试图设置它,但我的页面中的表格几乎没有应用样式。 table thead tr th#/th thFirst Name/th thLast Name/th thLanguage/th /tr /t
有谁知道是否可以应用样式表与Twitter Bootstrap?我可以看到一些表的例子在一些较旧的教程,但不是在Bootstrap网站本身。

我试图设置它,但我的页面中的表格几乎没有应用样式。

<table>
    <thead>
        <tr>
            <th>#</th>
            <th>First Name</th>
            <th>Last Name</th>
            <th>Language</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>1</td>
            <td>Some</td>
            <td>One</td>
            <td>English</td>
        </tr>
        <tr>
            <td>2</td>
            <td>Joe</td>
            <td>Sixpack</td>
            <td>English</td>
        </tr>
    </tbody>
</table>

我需要申请什么课程?

解决方法

Bootstrap提供各种表格样式。有关文档和示例,请查看 Base CSS – Tables。

下面的样式给出了很好看的表:

<table class="table table-striped table-bordered table-condensed">
  ...
</table>

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读