📜  jquery 删除 css - Javascript 代码示例

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

代码示例6
$("#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', '')
*/