Another important example is CSS.
另一个重要的例子是CSS。
With CSS 3 the story is far worse.
对于CSS3来说,情况就更糟糕了。
Design maintainable CSS structure.
设计可维护的CSS结构。
Writing less CSS means saving time.
写更少的CSS意味着节约时间。
DO make good use of CSS inheritance.
DO -充分利用CSS的继承性。
So how is the CSS information included?
因此CSS信息是如何包括的?
Use standard CSS properties if possible.
尽可能使用标准的CSS属性。
In Listing 4, we see a typical CSS file.
在清单4中,我们将看到一个典型的CSS文件。
CSS is separate code with its own syntax.
CSS是单独的代码,具有它自己的语法。
The original CSS file can be thrown away.
原始的CSS文件可以被遗弃。
And your CSS is in its own directory, too.
而且您的CSS也在自己的目录中。
CSS styling is also often included inline.
CSS样式化通常也包含在行内。
Use the same content with simple CSS scripts.
使用与简单的css脚本相同的内容。
Listing 1 shows some sample CSS declarations.
清单1显示了一些示例CSS声明。
Add the other resource files, such as CSS files.
添加其他的资源文件,例如CSS文件。
Multiple CSS files contain the styling information.
多个CSS文件,包含样式信息。
Added support for CSS 2.1 and CSS 3 properties.
新增对CSS 2.1和CSS3属性的支持。
So, what happened to the CSS code to make it smaller?
那么,为了使文件更小究竟对CSS代码做了什么呢?
Listing 3 below shows a simple example of a CSS rule.
下面的清单3给出一个简单的CSS规则示例。
Particularly valuable is the Index of CSS properties.
尤其是CSS 属性的索引很有价值。
The CSS file is open for editing in the CSS editor.
CSS文件会在CSS编辑器中打开。
It does this by relying more on CSS and text than on images.
为了做到这一点,它更多地依靠CSS和文本而非图像。
You can see exactly which CSS rules match for an element.
你可以精确的看到哪条css规则和哪个元素匹配。
These tools test everything from CSS validation to website speed.
这些工具可以测试从CSS验证到网站速度的一切。
What about CSS files and CSS images as application resources?
我们又该如何处理CSS文件以及CSS图片等应用程序资源呢?
The link has a new CSS class, defined in the iPhone CSS file.
该链接有一个新css类,该类是在iPhone CSS文件中定义的。
The link has a new CSS class, defined in the iPhone CSS file.
该链接有一个新css类,该类是在iPhone CSS文件中定义的。
应用推荐