css可修饰的9个属性_四个有用CSS修饰词

css可修饰的9个属性

Code “prettifiers” are the opposite to “minifiers”. The latter are applications that compress web site code (HTML, CSS and JavaScript) to the smallest possible size by removing spaces, line breaks, and comments. A smaller file size means faster loading times for web pages; every saved byte makes a difference. You’ll find minified code used by most high-traffic websites (view the source code of the Google home page for an example) and frameworks; some CMS’s also minify code by default.

代码“前缀”与“前缀”相反。 后者是通过删除空格,换行符和注释将网站代码(HTML,CSS和JavaScript)压缩到最小尺寸的应用程序。 较小的文件大小意味着更快的网页加载时间; 每个保存的字节都不同。 您会找到大多数人流量大的网站(例如,查看Google主页的源代码)和框架所使用的精简代码; 默认情况下,某些CMS还会缩小代码。

While completely readable by machines, minified code causes headaches when interpreted by human beings; thus, prettifiers, or “beautifiers”, convert the code back into a human-readable format.

最小化的代码虽然可以被机器完全读取,但是当被人解释时会引起头痛。 因此,美化词或“美化词”会将代码转换回人类可读的格式。

takes CSS code (either directly via copy-and-paste, as a file upload, or a URL) and cleans it up according to rules you determine; the default ruleset works well for most code you’ll encounter.

ProCSSor获取CSS代码(直接通过复制和粘贴,作为文件上传或URL),并根据您确定的规则进行清理; 默认规则集适用于您将遇到的大多数代码。

is similar to ProCSSor, with fewer rules but the ability to sort the converted CSS code alphabetically by selector and/or property.

StyleneatProCSSor相似,规则更少,但是能够通过选择器和/或属性按字母顺序对转换后CSS代码进行排序。

is an online tool based on the venerable CSSTidy application, with the added option to compress and optimize the code at the same time; converted code can be given a balance between readability and file size.

代码美化器是基于古老的CSSTidy应用程序的在线工具,具有添加的选项,可以同时压缩和优化代码。 转换后的代码可以在可读性和文件大小之间取得平衡。

is a bookmarklet application for your browser which recognizes a wider variety of languages. The app is intended to do on-screen conversions of poorly-formatted code examples on web pages.

Syntaclet是适用于您的浏览器的书签应用程序,可识别多种语言。 该应用程序旨在对网页上格式较差的代码示例进行屏幕转换。

翻译自: https://thenewcode.com/335/Four-Useful-CSS-Prettifiers

css可修饰的9个属性

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值