$(".clickMore img").click(function(){
if($(this).attr('src')=='/resource/component/kms/img/moreIcon.png'){
$(this).attr('src','/resource/component/kms/img/lessIcon.png');
$(this).parents("div.ssfl").css("height","auto");
}else{
$(this).attr('src','/resource/component/kms/img/moreIcon.png');
$(this).parents("div.ssfl").css("height","30px");
}
})
jquery点击来回切换img图片的src指定元素的高度显示与隐藏
最新推荐文章于 2022-01-05 18:53:43 发布