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.
我需要创建一个同时具有交替和圆角 TR 角的表,设法使用类似http://jsfiddle.net/tXa53/的东西创建 tr 角
但现在我无法创建替代部分是否有 jQuery 脚本或其他可以工作的东西?
仅使用 css:
http://jsfiddle.net/tXa53/3/
我刚刚补充说:
.newHardware tr:nth-of-type(2n) td{ background:#777; }
你也可以使用nth-child或nth-of-type(even|odd)
nth-child
nth-of-type(even|odd)