How can I erase all inline styles with javascript and leave only the styles specified in the css style sheet?

前端 未结 7 700
一整个雨季
一整个雨季 2020-12-02 14:53

If I have the following in my html:

And this in my c

相关标签:
7条回答
  • 2020-12-02 15:52
    $('div').removeAttr('style');
    
    0 讨论(0)
提交回复
热议问题