Indeed, developers came up with quite creative ways to use comments and text formatting to improve the maintainability of CSS-code.
的确,开发人员开始使用非常有创造力的方式使用注释和文本格式,用于改进CSS代码的可维护性。
As you can see, this code directly manipulates styles, which is not good, as that job should be left to CSS.
如您所见,这个代码直接操作样式,这不太好,因为这种工作应该留给CSS完成。
So, what happened to the CSS code to make it smaller?
那么,为了使文件更小究竟对CSS代码做了什么呢?
While we all knowthat CSS need only be downloaded once and then cached, there are someeasy ways to mitigate the resultant extra code and requests.
然而,我们都知道一旦css样式第一次解析下载后它就会缓存在本地,这样以后就减轻了对代码的反复请求了。
Regardless, if you want absolute standards conformance in your CSS code, you'll need to stay away from vendor prefixes.
无论如何,如果你想在你的CSS代码中使用绝对的标准的话,你都应该远离这些特定的前缀。
Listing 3 provides an example of an embedded style declaration that really should be held within an external CSS file for greater code maintainability.
清单3提供了嵌入样式声明的一个例子,该声明应该保留在一个外部CSS文件内以便获得更好的代码可维护性。
Although it may seem strange to compare FXG to CSS, FXG conceptually accomplishes the same exact thing as CSS: it separates the layout code from the style information.
尽管对FXG和CSS进行比较似乎有点奇怪,但FXG完成的任务在概念上与CSS完全相同:它将布局代码和样式信息分离开来。
Listing 2 shows the CSS code for the float container technique.
清单2显示了这种浮动容器技术所使用的CSS代码。
Since the same underlying code handles all the XUL files, HTML, and SVG, you can use CSS properties to style XUL files.
因为相同的底层代码处理所有XUL文件、HTML和SVG,所以可以使用css属性设置XUL文件的样式。
Included are snippets of the JSP code and the corresponding CSS styles (where applicable).
包括了JSP代码片断和相应的CSS风格(可用的)。
Listing 3 shows the CSS code for the hidden overflow container technique.
清单3显示了隐藏溢出容器技术所使用的CSS代码。
Consider the CSS file down in Listing 2, which has an appropriate amount of white space (and comments), allowing a developer to understand the purpose of the CSS code.
考虑清单2中的CSS文件,其中有适当数量的空白内容(和注释),有助于开发人员理解CSS代码的意图。
You've learned how to install the tools, create basic interfaces with HTML, and even added a bit of PHP code and some CSS styling.
学习了如何安装工具,利用HTML创建基本的界面,甚至添加一些PHP代码和一些CSS样式。
This takes you to the HTML code responsible for that area and displays its associated CSS on the right.
这会将您带到负责该区域的HTML代码并在右侧显示相关的CSS。
To refactor the code, start moving the style information to a CSS stylesheet.
要重构代码,首先将样式信息移到css样式表中。
Similarly, to keep your CSS code tidy, consider grouping component style subsets.
同样地,要让CSS代码保持整齐,可以考虑对组件样式子集进行分组。
Even advanced developers often needs to optimize their CSS code.
即便是高级的开发人员经常也要去优化其CSS代码。
The idea is something like CSS — which separates the display code of a web site from the content.
就像CSS那样——从内容上把网站呈现解析成为一个个代码。
Listing 7 shows what the CSS code looks like.
清单7显示了CSS代码的外观。
Take a look at the source code of the sample application to see how to define and use CSS styles with XSL.
看一下样本应用中的源代码,以了解如何在XSL中定义和使用css样式。
At the heart of the animation code is the animate function, which changes any numeric CSS style value over time.
animate函数是动画代码的核心,它用于更改任何随时间变化的数值型的css样式值。
This tutorial illustrates how to implement a nice animated menu using Mootoolsand some lines of CSS and HTML code ready to reuse in your project.
本指南阐明如何使用Mootools和某些在你的项目中可复用的CSS 和HTML代码行来实现漂亮的动画菜单。
While you can turn on "CSS 3 draft" mode, this only gives you code view support.
虽然可以打开“CSS3draft”模式,但只有在代码视图中才能享受到这一支持。
CSS Tidy is a free, online application that will fix errors and optimize your CSS code.
CSSTidy是免费的在线应用,可修正CSS代码的错误并对其进行优化。
You do not need any specific software to write HTML and CSS code; any basic text editor will do (such as Notepad, vi, emacs, and so on.)
您不需任何特定软件来编写HTML和CSS代码;任何基本文本编辑器都可以(例如Notepad、vi、emacs 等等)。
Cascading Style Sheets (CSS) to present the UI components without explicitly modifying the application code.
Cascading StyleSheets (CSS)可以在不必显式地修改应用程序代码的情况下呈现UI组件。
If dividing the context item by 2 leaves a remainder of 1, the stylesheet generates the CSS code background: gray; color: white;.
如果上下文项除2余1,样式表就生成CSS代码background:gray;color:white;。
The hyphen (-) used to separate words in the W3C CSS Version 2.0 specification isn't used as part of the code convention in the Flex implementation.
在W3CCSS版本2.0中被用来分离单词的连字符(-)并未用作Flex实现内的代码约定的一部分。
The hyphen (-) used to separate words in the W3C CSS Version 2.0 specification isn't used as part of the code convention in the Flex implementation.
在W3CCSS版本2.0中被用来分离单词的连字符(-)并未用作Flex实现内的代码约定的一部分。
应用推荐