I have a long list of multiple div... let\'s say 20 div
All wrap in another one..
text text 3条回答 挽巷 (楼主) 2021-01-18 21:40 jQuery makes it just about as easy as it can be: $('#main>div.xyz:even').addClass('grey'); http://api.jquery.com/even-selector/ 0 讨论(0) 查看其它3个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
jQuery makes it just about as easy as it can be:
$('#main>div.xyz:even').addClass('grey');
http://api.jquery.com/even-selector/