jquery中css方法无效的解决方案

// An highlighted block
$("body").css("background","#fff!important") //无效
解决方案:
$("body").css("cssTest","background:#fff!important")

$("body").css("background-color","#fff") //无效
解决方案:
$("body").css("backgroundColor","#fff") 

猜你喜欢

转载自blog.csdn.net/lwdyxweb/article/details/106253997