首页 > jquery 选择器:not()的写法?

jquery 选择器:not()的写法?

$(".page-normal a:not(:first) a:not(:last)")为啥不行?
我要排除第一个和最后一个,确保中间可以点击
如何不选中上一页和下一页效果? 中间可以选中?


分别来写$(".page-normal a")
$(".page-normal a:first-child") $(".page-normal a:last-child")
如果是css效果,可以先写整体的,再写两边的覆盖掉;
如果是js效果,可以先写整体的,再写两边的,写之前unbind("click"),再写需要实现的js效果。


$('.page-normal a:not(:first, :last)')

$(".page-normal a:not(:first,:last)")

【热门文章】
【热门文章】