// An highlighted block
$("body").css("background","#fff!important") //无效
解决方案:
$("body").css("cssText","background:#fff!important")
$("body").css("background-color","#fff") //无效
解决方案:
$("body").css("backgroundColor","#fff")
jquery中css方法无效的解决方案
于 2020-05-21 11:58:03 首次发布