Listing 7 shows what the CSS code looks like.
清单7显示了CSS代码的外观。
So, what happened to the CSS code to make it smaller?
那么,为了使文件更小究竟对CSS代码做了什么呢?
Listing 2 shows the CSS code for the float container technique.
清单2显示了这种浮动容器技术所使用的CSS代码。
Even advanced developers often needs to optimize their CSS code.
即便是高级的开发人员经常也要去优化其CSS代码。
Listing 4 shows the CSS code for the: after pseudo-class technique.
清单4显示了:after伪类技术所使用的CSS代码。
Listing 3 shows the CSS code for the hidden overflow container technique.
清单3显示了隐藏溢出容器技术所使用的CSS代码。
The more media queries you add, the more fragile your CSS code becomes.
你添加的媒体查询越多,你的CSS代码就会变得越来越经不起折腾。
Similarly, to keep your CSS code tidy, consider grouping component style subsets.
同样地,要让CSS代码保持整齐,可以考虑对组件样式子集进行分组。
CSS Tidy is a free, online application that will fix errors and optimize your CSS code.
CSSTidy是免费的在线应用,可修正CSS代码的错误并对其进行优化。
Regardless, if you want absolute standards conformance in your CSS code, you'll need to stay away from vendor prefixes.
无论如何,如果你想在你的CSS代码中使用绝对的标准的话,你都应该远离这些特定的前缀。
It will create four image files and the necessary HTML and CSS code for you to put rounded corners around your content.
这将创造四个图像文件,以及所需的HTML和CSS代码,你把圆角靠近你的内容。
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;。
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 等等)。
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代码的意图。
It's a question I often receive, so I decided to publish a very simple post which explains how to design a perfect pagination style using some lines of HTML and CSS code.
经常有人问我这个问题,所以我决定发一个帖子来说明如何用少量的HTML和CSS代码设计出完美的分页样式。
The design reintroduces monolithic JSPs (the Model 1 approach: a sea of HTML, CSS code, images, and scripting code), an antipattern that is extremely difficult to read and maintain (see Resources).
设计重新带回了单一JSP(模式1方法:一堆HTML、CSS代码、图片和脚本代码),这是一种反模式,极难阅读和维护(请参阅参考资料)。
CSS is separate code with its own syntax.
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完全相同:它将布局代码和样式信息分离开来。
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风格(可用的)。
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。
This takes you to the HTML code responsible for that area and displays its associated CSS on the right.
这会将您带到负责该区域的HTML代码并在右侧显示相关的CSS。
应用推荐