Dynamically change CSS rules in JavaScript or jQuery

后端 未结 3 1601
一个人的身影
一个人的身影 2021-02-18 13:21

I\'m looking for a way to change the CSS rules of my stylesheet imported in the document. So I have an external stylesheet and some class and div attri

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-18 14:19

    You can inject style declarations into the DOM.

    $("head").append('');
    

提交回复
热议问题