It does this by relying more on CSS and text than on images.
为了做到这一点,它更多地依靠CSS和文本而非图像。
So, what happened to the CSS code to make it smaller?
那么,为了使文件更小究竟对CSS代码做了什么呢?
Simply create a new CSS file, place your CSS style selectors in it, and save the file.
只需创建一个新的CSS文件,将css样式选择器放入其内,并保存此文件。
Cascading Stylesheets (CSS) may provide some help, but often the kinds of changes you require may go beyond what CSS can accomplish.
级联样式表(CSS)可以提供一些帮助,但是需要做的修改类型经常会超出CSS的能力。
Well, click through to Applied CSS Management and Optimization where some common methods of managing and optimizing CSS are outlined.
好了,让我们看一下“实用的css管理与优化”文章里面介绍的几种管理优化css的讲解。
Use the same content with simple CSS scripts.
使用与简单的css脚本相同的内容。
So how is the CSS information included?
因此CSS信息是如何包括的?
You can see exactly which CSS rules match for an element.
你可以精确的看到哪条css规则和哪个元素匹配。
A CSS rule consists of a selector and a declaration block.
CSS规则由一个选择符和一个声明块组成。
Also watch out for layout improvements such as hover CSS style.
另外值得注意布局上的改进,诸如悬浮CSS样式。
These tools test everything from CSS validation to website speed.
这些工具可以测试从CSS验证到网站速度的一切。
CSS is separate code with its own syntax.
CSS是单独的代码,具有它自己的语法。
To reduce script and CSS requests, include them inline in the page or combine multiple scripts or CSS files together.
为了减少脚本和CSS请求,可以以内联方式把它们包含在页面中,或者把多个脚本或CSS文件组合在一起。
Particularly valuable is the Index of CSS properties.
尤其是CSS 属性的索引很有价值。
Add the other resource files, such as CSS files.
添加其他的资源文件,例如CSS文件。
For a complete list of CSS properties and ie versions that support them, see the MSDN CSS Attributes Index.
如需CSS属性和支持它们的IE版本的完整列表,请参见MSDN的CSS属性索引。
Use standard CSS properties if possible.
尽可能使用标准的CSS属性。
Now you can create the CSS styles in the source pane of the CSS editor.
现在您可以在CSS编辑器的源窗格中创建css样式。
In Listing 4, we see a typical CSS file.
在清单4中,我们将看到一个典型的CSS文件。
Multiple CSS files contain the styling information.
多个CSS文件,包含样式信息。
And your CSS is in its own directory, too.
而且您的CSS也在自己的目录中。
This tool, named CSS Compressor, can consequently reduce the size of any CSS file by removing comments, indentation and more.
这个号称CSS压缩机的小工具,能移除任何CSS文件中的注释,缩减,等等,从而缩减CSS文件的体积。
Another important example is CSS.
另一个重要的例子是CSS。
CSS styling is also often included inline.
CSS样式化通常也包含在行内。
You'll also learn how to set up the Sprite using some basic CSS techniques (CSS background Sprite and CSS text image replacement).
同时你也会学习到应用基础CSS的技巧CSS背景图片翻转。
With CSS 3 the story is far worse.
对于CSS3来说,情况就更糟糕了。
You will even learn CSS if you use it.
你甚至还可以用它来学习CSS。
You will even learn CSS if you use it.
你甚至还可以用它来学习CSS。
应用推荐