TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Easily migrate inlined CSS to a separate CSS file (8 hour project)

3 点作者 sinaiman大约 14 年前

1 comment

sinaiman大约 14 年前
It's mostly explained in the "about", but I have a habit of making most of my CSS changes inline in my HTML, so I use a lot of style attributes. This is usually "bad form", and I always tell myself I'll just move it all over to an external document later, but it's really annoying to do that manually.<p>So I made this tool last night that takes an HTML document and extracts all the inlined CSS style attributes and puts them into their own classes and then removes the style attributes from the HTML and replaces them with neat little classes.<p>Definitely a <i>ton</i> more this tool could do to streamline the process (also I could just learn to do all my CSS in an external file to begin with), but, whatever, I'm definitely going to use this. It's a start at least!
评论 #2387963 未加载