Contextual styling with selector - first occurrence of element, nth child
Here's my current CSS:
http://jsfiddle.net/gFA4p/172/
In my first rule, what I want to do is have that style apply only to the "glah" cell. Basically, for the first occurrence of the target element,开发者_开发问答 apply the style to the third td element.
You could use the fact that the td
you're trying to style has a rowspan
attribute:
tr.pickConsensusBody td[rowspan]:nth-child(3)
http://jsfiddle.net/gFA4p/173/
精彩评论