Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
目标是在错误数组中的元素旁边显示星号:
http://jsfiddle.net/ygFYh/5/
显然使用 nth-child 不是合适的选择器。
使用:eq代替:nth-child
:eq
:nth-child
但使用 (x-1) 因为它们是基于 0 的..
演示在http://jsfiddle.net/ygFYh/7/