Jun15

第一章 CSS和文档

css-garden

层叠样式表(Cascading Style Sheets,CSS)的功能非常强大,可以影响一个或一组文档的表现。

显然,如果不存在某种文档,CSS基本上毫无用处,因为这样一来它将没有要表现的内容。当然,“文档”的定义相当宽泛。例如,Mozilla和相关的洲览器就使用CSS来影响浏览器Chrome本身的表现。不过,如果没有Chrome的内容——按钮、地址栏输入、对话框、窗口等等——也就没有使用CSS(或其他任何表现信息)的必要了。

Cascading Style Sheets (CSS) are a powerful way to affect the presentation of a document or a collection of documents. Obviously, CSS is basically useless without a document of some sort, since it would have no content to present. Of course, the definition of “document” is extremely broad. For example, Mozilla and related browsers use CSS to affect the presentation of the browser chrome itself. Still, without the content of the chromebuttons, address inputs, dialog boxes, windows, and so onthere would be no need for CSS (or any other presentational information).

Comments are closed.