【发布时间】:2016-05-03 14:58:50
【问题描述】:
我是 Bootstrap 的新手,我想覆盖 Bootstrap 默认的表格颜色,尤其是行,我想定义另一种纯色。我试过用一个新类覆盖,但 Bootstrap 一直显示默认颜色。我不想编辑原始的 Bootstrap CSS 文件。请注意,我正在尝试使用 Odoo 版本 8 执行此操作,但我确信这无关紧要。
下面是我的桌子:
<table class="table">
<thead>
<tr class="filters">
<th><input type="text" class="form-control" placeholder="#" disabled=""></th>
<th><input type="text" class="form-control" placeholder="First Name" disabled=""></th>
<th><input type="text" class="form-control" placeholder="Last Name" disabled=""></th>
<th><input type="text" class="form-control" placeholder="Username" disabled=""></th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
<tr>
<td>2</td>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
</tr>
<tr>
<td>3</td>
<td>Larry</td>
<td>the Bird</td>
<td>@twitter</td>
</tr>
</tbody>
</table>
从 Bootstrap CSS 中我可以看出,这是正在应用的代码:
}
.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
padding: 8px;
line-height: 1.42857143;
vertical-align: top;
border-top: 1px solid #000;
}
【问题讨论】:
标签: html css twitter-bootstrap html-table odoo-8