【发布时间】:2014-04-24 16:22:41
【问题描述】:
【问题讨论】:
-
最好在问题中发布您的代码,而不是给我们一个链接。
标签: slickgrid
【问题讨论】:
标签: slickgrid
如果您总是希望第一行为红色,第二行为蓝色等,则使用 nth-of-type 选择器和 .slick-row 类选择器在 css 中定义它:
/*Colour the first row red*/
.slick-row:nth-of-type(1){
background: #FF0000;
}
/*Colour the second row blue*/
.slick-row:nth-of-type(2){
background: #0000FF;
}
【讨论】: