$(".tag_add").css("background","#ffffff");
$(".tag_add").css("color","#000000");
$(this).css("background","#1f7ff3");
$(this).css("color","#ffffff");
用jq修改css
![](https://img2024.cnblogs.com/blog/35695/202407/35695-20240713070336838-1837943664.jpg)
$(".tag_add").css("background","#ffffff");
$(".tag_add").css("color","#000000");
$(this).css("background","#1f7ff3");
$(this).css("color","#ffffff");