We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(9)
Juriy Zaytsev 用 JavaScript 编写了一个 HTML 压缩器,您可以在此页面上在线使用它: http://kangax.github.com/html -minifier/
正如警告所述,它仍然是早期的 alpha,因此可能存在错误。谨慎使用!
Juriy Zaytsev wrote an HTML minifier in JavaScript, which you can use online on this page: http://kangax.github.com/html-minifier/
As the warning says, it’s still an early alpha, so there might be bugs. Use with caution!
http://prettydiff.com/ - 这是用 JavaScript 编写的,因此您可以立即在浏览器中使用它。
http://prettydiff.com/ - This is written in JavaScript so you can use it instantly in your browser.
有一个在线压缩器可以最小化所有嵌入的 CSS 和 JavaScript 块以及 HTML。它生成单行输出代码,该代码呈现为原始代码并尊重文档结构。
它使用 Yahoo YUI Compressor 和 Google Closure 编译器来执行 JavaScript。
在这里查看:HTMLcompressor.com
There's an online compressor that does minimize all embedded CSS and JavaScript blocks and also the HTML. It produces a single line output code which renders as the original and respects the document structure.
It uses Yahoo YUI Compressor and Google Closure compiler for JavaScript.
Check it here: HTMLcompressor.com
这是迄今为止我发现的最好的缩小器。
在这里查看:Html、Javascript 以及 CSS minifier
This is the best minifier I found till date.
Check it here: Html, Javascript as well as CSS minifier
https://stackoverflow.com/questions/728260/html-minification 重复吗?
如果您并不真正需要在线工具,那么 Firefox 的 PageSpeed 插件和 Yahho 压缩器都是非常好的压缩器。此外,PageSpeed 工具还可以提示您要更改哪些内容,以及哪些更改将带来速度/大小的最大变化。
A duplicate of https://stackoverflow.com/questions/728260/html-minification ?
And if you do not really need an ON-Line tool, then PageSpeed plugin for Firefox and the Yahho compressor are both really good minifiers. Also the PageSpeed tool can give you hints what to change, and which change will give the biggest change in speed/size.
我遇到了一个脚本,可以动态缩小 HTML、内联 CSS、内联 Javascript。
检查此处动态网站压缩器
I came across a script that will minify your HTML, Inline CSS, Inline Javascript On The Fly.
Check here Dynamic Website Compressor
我建议您尝试WebMarkupMin Online。
I recommend you to try WebMarkupMin Online.
这些是完美的缩小器:
对于 Javascript http://javascript-minifier.com/
对于 CSS http://cssminifier.com/
对于 PNG http://pngcrush.com/
对于 JPEG http://jpgoptimiser.com/
These are the perfect minifiers:
For Javascript http://javascript-minifier.com/
For CSS http://cssminifier.com/
For PNG http://pngcrush.com/
For JPEG http://jpgoptimiser.com/
我使用 HTML JavaScript CSS Minifier 来缩小整个 HTML 代码(包括 CSS 和 Javascript)。
您还可以对 Javascript minifier 加密器 上的 Javascript 部分进行加密,以降低其可读性,但会增加其可读性文件的大小。
I use HTML JavaScript CSS Minifier for minify the entire HTML code (including CSS and Javascript).
You can also encrypt the Javascript parts on Javascript minifier encryptor to make it less readable but it increase the size of your file.