获取某个元素下除第一个元素之外的几种方法

1.CSS伪类选择器:

section > ul em :not(:first-child) {
display:none;
}

2.Jquery选择器

$('#news_move em:gt(0)').css('display','none');


3.Jquery选择器
$('#news_move em[name!="news_move"]').css('display','none');

posted @ 2016-08-22 15:06  人二衣羊  阅读(1911)  评论(0编辑  收藏  举报