jQuery取出排除自身以外的所有同类元素

使用not(),比如img元素,class="img_p".

$("img.img_p").not(this).css({"opacity":"0.1"});


猜你喜欢

转载自blog.csdn.net/lplife/article/details/80869719