【发布时间】:2017-09-15 20:50:44
【问题描述】:
我有一个条带表,编码如下:
<table class="table-sm table-hover table-striped">
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
...
</tbody>
</table>
我使用的是最新的 Bootstrap 4 测试版。我想更改 Bootstrap 用来“条纹”行的交替颜色。我无法在文档中找到任何内容。根据 Stack Overflow 上一篇四年前的帖子,我可以添加自己的 css 文件。但是,如果可能的话,我想只使用引导类来做到这一点。
感谢您的帮助, 马克
【问题讨论】:
标签: css twitter-bootstrap bootstrap-4