It's important to recognize that as the application grows, the design will become increasingly difficult to maintain if the application contains a lot of embedded CSS.
最重要的是要认识到如果应用程序包含很多被嵌入的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文件内以便获得更好的代码可维护性。
Listing 14 shows the CSS to style these embedded UL elements.
清单14显示了应用于这些嵌入的UL元素的CSS。
The first section is a cascading stylesheet (CSS) embedded in the tag.
第一部分是一个嵌入在标记中的级联样式表(css)。
CSS is used to create the effect of a drop-down menu with embedded UL elements.
通过CSS使用嵌入的UL元素创建下拉菜单效果。
Microformats offer a simpler approach by adding semantics to existing HTML documents using specific CSS styles. The metadata is compact and is embedded inside the actual HTML.
Microfomats提供了一个简单的方法――CSS风格-―来给现有的HTML文档添加语义标记,简洁的meta数据被嵌入到原有的HTML文档中。
Microformats offer a simpler approach by adding semantics to existing HTML documents using specific CSS styles. The metadata is compact and is embedded inside the actual HTML.
Microfomats提供了一个简单的方法――CSS风格-―来给现有的HTML文档添加语义标记,简洁的meta数据被嵌入到原有的HTML文档中。
应用推荐