Export CSS changes from inspector (webkit, firebug, etc)

前端 未结 14 1440
夕颜
夕颜 2020-12-07 10:08

When I\'m working with CSS, I\'ll often test in a browser - say, Chrome - right click an element, click Inspect Element, and edit the CSS right there. The use of arrow keys

相关标签:
14条回答
  • 2020-12-07 10:59

    I built a Chrome extension that does exactly this.

    It's called StyleURL - it takes whatever CSS changes you made in Chrome Inspector and outputs valid CSS as the diff: https://chrome.google.com/webstore/detail/styleurl/emplcligcppnlalfjknjbanolhlnkmgp

    Here's an example where I added "padding-bottom: 50px" to this page:

    It's open-source and on GitHub too: https://github.com/Jarred-Sumner/styleurl-extension

    0 讨论(0)
  • 2020-12-07 11:05

    In Chrome there is also the Changes tab in the console drawer that displays all the modifications of CSS. It's not an export, but at least it is very convenient to quickly grasp what has changed.

    0 讨论(0)
提交回复
热议问题