When you add a property with the .css function jq! Important issues to be aware of

Such writing is not enough

$("#sidebar_content").css({ "padding-top": "10px!important" });

Need to write

$("#sidebar_content").css("cssText", "padding-top:10px!important");

Guess you like

Origin www.cnblogs.com/hehuiqiong/p/12525975.html