Inject CSS with chrome developer tool?

前端 未结 8 861
忘了有多久
忘了有多久 2020-12-13 18:40

Where can I add CSS to the page I\'m viewing? I don\'t want to add style to one element directly, I want to add a \'document\' to a page to debug changes before editing the

8条回答
  •  庸人自扰
    2020-12-13 19:08

    I'm not sure if it works, but you'd have to try.

    Pressing F12/ (Cmd + opt + I on Mac) to open up the Developer Console and go to the Console tab.

    Copy paste the following code (edit the path):

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

    Alternatively, you could edit one property so the inspector-stylesheet.css is created by Chrome, and copy past your CSS source there.

提交回复
热议问题