$('.el-card').css("background", "#fff !important");(不起作用的)

改为:

$('.el-card').css("cssText", "background-color:#fff !important;");

要想修改多个属性,可通过如下方式:

$(".el-card").css("cssText", "width:650px !important;overflow:hidden !important");

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
  • 2021-12-05
  • 2021-10-16
  • 2021-08-09
  • 2022-01-13
猜你喜欢
  • 2021-12-30
  • 2021-12-30
  • 2021-12-31
  • 2021-12-31
  • 2021-08-17
  • 2022-12-23
相关资源
相似解决方案