【发布时间】:2018-08-14 11:27:54
【问题描述】:
我对Bootstrap table striped: How do I change the stripe background colour? 有类似的问题。但主要区别在于我只想更改一列的颜色交替。
这是我的 ng-table 的 cose,我想更改标题为“Srv”的第一列的背景颜色
<table ng-table="fondiTable_C" class="table table-condensed table-bordered table-striped" template-pagination="app/components/gestioneFondi/pagerTemplate.html">
<tr ng-repeat="fondo in data_C">
<td class="i9fontPre text-center" data-title="'Srv'" header-class="'i9header'">{{::fondo.area}}</td>
<td class="i9fontPre text-left" data-title="'Chiave IB'" header-class="'i9header'">{{::fondo | formatChiave}}</td>
<td class="i9font text-center" data-title="'Stato Pratica'" header-class="'i9header'">{{::fondo.stato}}</td>
<td class="i9font text-center" data-title="'Flag S/V'" header-class="'i9header'">{{::fondo.fvs}}</td>
<td class="i9font text-right" data-title="'Fondo bucket 1 (EUR)'" header-class="'i9header'">{{::fondo.fnd1 | number:2}}</td>
<td class="i9font text-right" data-title="'Fondo bucket 2 (EUR)'" header-class="'i9header'">{{::fondo.fnd2 | number:2}}</td>
<td class="i9font text-center" data-title="'Bucket'" header-class="'i9header'">{{::fondo.bktDH}}</td>
<td class="i9font text-right" data-title="'Fondo IFRS9 (EUR)'" header-class="'i9header'">{{::fondo.fndDH | number:2}}</td>
<td class="i9font text-center" data-title="'Rapporto'" header-class="'i9header'">{{::fondo | formatRapporto}}</td>
<td class="i9font text-center" data-title="'Cdg'" header-class="'i9header'">{{::fondo.cdg | formatCdg}}</td>
<td class="i9font text-center" data-title="'FT'" header-class="'i9header'">{{::fondo.fTec}}</td>
</tr>
</table>
你能帮帮我吗? 提前谢谢你
【问题讨论】:
-
如果您可以选择在特定标签中添加一个类,或者简单地使用 :nth-child(n) 作为目标,请提供一个示例,然后我可以给出更具体的答案
-
我编辑了帖子,谢谢
标签: angularjs-ng-repeat angular-ui-bootstrap ngtable