解析HTML文件以获取CSS文件的所有ID和类 [英] Parse HTML file to grab all ID and Classes for a CSS file

查看:184
本文介绍了解析HTML文件以获取CSS文件的所有ID和类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不久以前,我相当确定我遇到了一个应用程序(或者一个插件Coda - 我使用的IDE),它快速解析html文档,然后吐出所有的元素与ID和类我在CSS文件中使用。

A short while ago, I'm fairly certain I came across an application (or perhaps a plugin for Coda - the IDE I use) which quickly parses a html document and then spits out all of the elements with IDs and Classes for me to use in a CSS file.

完全进入zen编码 - 使用美妙的TEA插件为Coda,我现在热的这个app / plugins。

Having fully 'got into' zen coding - using the wonderful TEA plugin for Coda, I'm now hot on the heels of this app/plugin again.

我试图通过谷歌狩猎失败,但是完全空手而归。

I've tried and failed miserably at hunting through Google, but have come up completely empty handed.

有人知道任何可以做到这一点吗?

Does anyone know of anything which can do this?

新年快乐大家!

推荐答案

我想你正在寻找类似 http:// lab .xms.pl / css-generator /

但是我必须警告你 - 像这样的工具只输出DOM的非常粗略的图片,没有任何优化。没有自动化工具会做得更好,特别是如果你在zen路径。

But I have to warn you -- tools like that one only output the very rough picture of the DOM, without any optimizations. No automated tool will do it better than you can, especially if you're on the zen path.

May CSS3与你在一起。

May CSS3 be with you.

这篇关于解析HTML文件以获取CSS文件的所有ID和类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆