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代码。
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代码的错误并对其进行优化。
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代码、图片和脚本代码),这是一种反模式,极难阅读和维护(请参阅参考资料)。
Indeed, developers came up with quite creative ways to use comments and text formatting to improve the maintainability of CSS-code.
的确,开发人员开始使用非常有创造力的方式使用注释和文本格式,用于改进CSS代码的可维护性。
Indeed, developers came up with quite creative ways to use comments and text formatting to improve the maintainability of CSS-code.
的确,开发人员开始使用非常有创造力的方式使用注释和文本格式,用于改进CSS代码的可维护性。
应用推荐