📄 cover.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html lang="en"><!-- $Id: cover.src,v 2.20 1998/05/12 15:56:21 bbos Exp $ --><HEAD><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><TITLE>Cascading Style Sheets, Level 2</TITLE><link rel="stylesheet" href="style/default.css" type="text/css"><link rel="next" href="about.html"><link rel="contents" href="cover.html#minitoc"><link rel="CSS-properties" href="propidx.html" title="properties"><link rel="index" href="indexlist.html" title="index"><style type="text/css"><!--@import "style/default.css";BODY {background: #def url("images/recbg.jpg")}--></style></HEAD><BODY background="images/recbg.jpg"><div class="navbar" align="center"><p><a href="about.html">next</a> <a href="cover.html#minitoc">contents</a> <a href="propidx.html">properties</a> <a href="indexlist.html">index</a> </div><hr class="navbar"><p align="right"><a href="http://www.w3.org/"><imgsrc="./images/w3c_home.gif" alt="W3C" align="left" border="0"hspace="0"></a> REC-CSS2-19980512<br clear="all"></p><h1 align=center>Cascading Style Sheets, level 2<BR>CSS2 Specification</h1><center><strong>W3C Recommendation <i>12-May-1998</i></strong></center><dl><dt>This version:<dd><a href="http://www.w3.org/TR/1998/REC-CSS2-19980512">http://www.w3.org/TR/1998/REC-CSS2-19980512</a><dt>Latest version:<dd><a href="http://www.w3.org/TR/REC-CSS2">http://www.w3.org/TR/REC-CSS2</a><dt>Previous version:<dd><a href="http://www.w3.org/TR/1998/PR-CSS2-19980324">http://www.w3.org/TR/1998/PR-CSS2-19980324</a><dt>Editors:<dd><a href="http://www.w3.org/People/Bos/">Bert Bos</a><<a href="mailto:bbos@w3.org">bbos@w3.org</a>><BR><A HREF="http://www.w3.org/People/howcome/">Håkon Wium Lie</A><<a href="mailto:howcome@w3.org">howcome@w3.org</a>><BR><A HREF="http://www.w3.org/People/chris/">Chris Lilley</A><<a href="mailto:chris@w3.org">chris@w3.org</a>><BR><A HREF="http://www.w3.org/People/Jacobs/">Ian Jacobs</A><<a href="mailto:ij@w3.org">ij@w3.org</a>></dl><h2>Abstract</h2> <p>This specification defines Cascading Style Sheets, level 2(CSS2). CSS2 is a style sheet language that allows authors and usersto attach style (e.g., fonts, spacing, and aural cues) to structureddocuments (e.g., HTML documents and XML applications). By separatingthe presentation style of documents from the content of documents,CSS2 simplifies Web authoring and site maintenance.<P>CSS2 builds on CSS1 (see <a href="refs.html#ref-CSS1" rel="biblioentry" class="noxref"><span class="normref">[CSS1]</span></a>) and, with very few exceptions,all valid CSS1 style sheets are valid CSS2 style sheets. CSS2 supportsmedia-specific style sheets so that authors may tailor thepresentation of their documents to visual browsers, aural devices,printers, braille devices, handheld devices, etc. This specificationalso supports content positioning, downloadable fonts, table layout,features for internationalization, automatic counters and numbering,and some properties related to user interface.<h2>Status of this document</h2><p>This document has been reviewed by W3C Members and other interestedparties and has been endorsed by the Director as a W3CRecommendation. It is a stable document and may be used as referencematerial or cited as a normative reference from anotherdocument. W3C's role in making the Recommendation is to draw attentionto the specification and to promote its widespread deployment. Thisenhances the functionality and interoperability of the Web.<P>A list of current W3C Recommendations and other technical documentscan be found at <a href="http://www.w3.org/TR">http://www.w3.org/TR</a>.<P>Public discussion of CSS features takes place on <ahref="http://www.w3.org/Mail/Lists.html#www-style">www-style@w3.org</a>.<h2>Available formats</h2><p>The CSS2 specification is available in the following formats:<dl><dt>HTML:<dd><a href="Overview.html">http://www.w3.org/TR/1998/REC-CSS2-19980512</a><dt>a plain text file:<dd><a href="css2.txt">http://www.w3.org/TR/1998/REC-CSS2-19980512/css2.txt</a>,<dt>HTML as a gzip'ed tar file:<dd><a href="css2.tgz">http://www.w3.org/TR/1998/REC-CSS2-19980512/css2.tgz</a>,<dt>HTML as a zip file (this is a '.zip' file not an '.exe'):<dd><a href="css2.zip">http://www.w3.org/TR/1998/REC-CSS2-19980512/css2.zip</a>,<dt>as well as a gzip'ed PostScript file:<dd><a href="css2.ps.gz">http://www.w3.org/TR/1998/REC-CSS2-19980512/css2.ps.gz</a>,<dt>and a PDF file:<dd><a href="css2.pdf">http://www.w3.org/TR/1998/REC-CSS2-19980512/css2.pdf</a>.</dl><P>In case of a discrepancy between the various forms of thespecification, <a href="Overview.html">http://www.w3.org/TR/1998/REC-CSS2-19980512</a> isconsidered the definitive version.<h3>Available languages</h3><P>The English version of this specification is the only normativeversion. However, for translations in other languages see <ahref="http://www.w3.org/Style/css2-updates/translations.html">http://www.w3.org/Style/css2-updates/translations.html</a>.</p><h3>Errata</h3> <P>The list of known errors in this specification isavailable at <ahref="http://www.w3.org/Style/css2-updates/REC-CSS2-19980512-errata.html">http://www.w3.org/Style/css2-updates/REC-CSS2-19980512-errata.html</a>.Please report errors in this document to <ahref="mailto:css2-editors@w3.org">css2-editors@w3.org</a>.</p><!--NewPage--><!-- this is for html2ps --><div class="toc"><h2><a name="minitoc">Quick Table of Contents</a></h2><ul class="toc"> <li class="tocline1"><a href="about.html" class="tocxref">1 About the CSS2 Specification</a> <li class="tocline1"><a href="intro.html" class="tocxref">2 Introduction to CSS2</a> <li class="tocline1"><a href="conform.html" class="tocxref">3 Conformance: Requirements and Recommendations</a> <li class="tocline1"><a href="syndata.html" class="tocxref">4 CSS2 syntax and basic data types</a> <li class="tocline1"><a href="selector.html" class="tocxref">5 Selectors</a> <li class="tocline1"><a href="cascade.html" class="tocxref">6 Assigning property values, Cascading, and Inheritance</a> <li class="tocline1"><a href="media.html" class="tocxref">7 Media types</a> <li class="tocline1"><a href="box.html" class="tocxref">8 Box model</a> <li class="tocline1"><a href="visuren.html" class="tocxref">9 Visual formatting model</a> <li class="tocline1"><a href="visudet.html" class="tocxref">10 Visual formatting model details</a> <li class="tocline1"><a href="visufx.html" class="tocxref">11 Visual effects</a> <li class="tocline1"><a href="generate.html" class="tocxref">12 Generated <span class="index-def" title="generated content">content</span>, automatic <span class="index-def" title="automatic numbering">numbering</span>, and lists</a> <li class="tocline1"><a href="page.html" class="tocxref">13 Paged media</a> <li class="tocline1"><a href="colors.html" class="tocxref">14 Colors and Backgrounds</a> <li class="tocline1"><a href="fonts.html" class="tocxref">15 Fonts</a> <li class="tocline1"><a href="text.html" class="tocxref">16 Text</a> <li class="tocline1"><a href="tables.html" class="tocxref">17 Tables</a> <li class="tocline1"><a href="ui.html" class="tocxref">18 User interface</a> <li class="tocline1"><a href="aural.html" class="tocxref">19 Aural style sheets</a> <li class="tocline1"><a href="sample.html" class="tocxref">Appendix A. A sample style sheet for HTML 4.0</a> <li class="tocline1"><a href="changes.html" class="tocxref">Appendix B. Changes from CSS1</a> <li class="tocline1"><a href="notes.html" class="tocxref">Appendix C. Implementation and performance notes for fonts</a> <li class="tocline1"><a href="grammar.html" class="tocxref">Appendix D. The grammar of CSS2</a> <li class="tocline1"><a href="refs.html" class="tocxref">Appendix E. References</a> <li class="tocline1"><a href="propidx.html" class="tocxref">Appendix F. Property index</a> <li class="tocline1"><a href="descidx.html" class="tocxref">Appendix G. Descriptor index</a> <li class="tocline1"><a href="indexlist.html" class="tocxref">Appendix H. Index</a></ul></div><!--NewPage--><!-- this is for html2ps --><div class="toc"><h2><a name="toc">Full Table of Contents</a></h2><ul class="toc"> <li class="tocline1"><a href="about.html" class="tocxref">1 About the CSS2 Specification</a> <ul class="toc"> <li class="tocline2"><a href="about.html#q1" class="tocxref">1.1 Reading the specification</a> <li class="tocline2"><a href="about.html#q2" class="tocxref">1.2 How the specification is organized</a> <li class="tocline2"><a href="about.html#q3" class="tocxref">1.3 Conventions</a> <ul class="toc"> <li class="tocline3"><a href="about.html#q4" class="tocxref">1.3.1 Document language elements and attributes</a> <li class="tocline3"><a href="about.html#property-defs" class="tocxref">1.3.2 CSS property definitions</a> <ul class="toc">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -