📜  jquery 删除 css 样式 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:24.098000             🧑  作者: Mango

代码示例4
$("#id .class").css({ 'background-color' : '' });

/* 
   As mentioned in the jquery documentation:
   Setting the value of a style property to an empty string  
   removes that property from an element 
   if it has already been directly applied
   e.g. $('#mydiv').css('color', '')
*/