早睡早起,方能养生!
Sleep early rise early, square can preserve one's health!

jQuery移除style指定CSS样式

super
2021-03-05 12:21
views 468

 新增/修改样式:

 

$("#super").css("top", "20px");

 

 新增/修改多个样式:

 

$("#super").css({"top": "20px", "left": "20px"});

 

 移除样式:

 

$("#super").css("top", "");

 


分享
0 条讨论
top