Is this sass code valid?
这个sass代码有效吗?
tr:nth-child(odd)
:background-color #cccccc
Somehow, it does not color my table's alternating rows.
不知何故,它没有给表的交替行上色。
2 个解决方案
#1
4
What browser are you using? nth-child
isn't presently supported in Firefox, or IE. You'll probably have to use the old odd/even classes thing.
你在用什么浏览器?目前Firefox或IE不支持nth-child。你可能需要使用旧的奇数/偶数类的东西。
#2
1
Compass provides mixins for styling your tables with sass, it requires some extra css classes due to poor support of CSS3.
Compass提供了用sass样式化表的mixin,由于CSS3的糟糕支持,它需要一些额外的css类。
See the Table Utilities section of wiki docs for more information. A demo is here.
有关更多信息,请参见wiki docs的表实用程序部分。一个演示。
#1
4
What browser are you using? nth-child
isn't presently supported in Firefox, or IE. You'll probably have to use the old odd/even classes thing.
你在用什么浏览器?目前Firefox或IE不支持nth-child。你可能需要使用旧的奇数/偶数类的东西。
#2
1
Compass provides mixins for styling your tables with sass, it requires some extra css classes due to poor support of CSS3.
Compass提供了用sass样式化表的mixin,由于CSS3的糟糕支持,它需要一些额外的css类。
See the Table Utilities section of wiki docs for more information. A demo is here.
有关更多信息,请参见wiki docs的表实用程序部分。一个演示。