Export CSS of DOM elements

后端 未结 3 1505
南笙
南笙 2020-11-30 22:47

I often find nice stylings on the web. To copy the CSS of a DOM element, I inspect that element with Google Chrome Developer Tools, look at the various CSS properties, and c

3条回答
  •  失恋的感觉
    2020-11-30 22:58

    I'm quoting Doozer Blake's excellent answer, provided above as a comment. If you like this answer, please upvote his original comment above:

    Not a direct answer, but with Chrome Developer Tools, you can click inside Styles or Computed Styles, hit Ctrl+A and then Ctrl+C to copy all the styles in those given areas. It's not perfect in the Style tab because it picks up some extra stuff. Better than selecting them one by one I guess. – Doozer Blake 3 hours ago

    You can do the same using Firebug for Firefox, by using Firebug's "Computed" side panel.

提交回复
热议问题