Ŀ¼
���淶д��ʱ���ǵ��������͵Ķ��ߣ�CSS�����ߺ�CSS��ʵ���ߡ�����ϣ�����淶���������ߣ��ṩ������Ҫ����Ӧ�Ĺ�����д����Ч�����˶��ɶ����ĵ���������Ҫǣ�浽CSSʵ�ֵ��ڶ�ϸ�ڡ�������ʵ������˵�����ǿ����ҵ�������Ҫ��������������CSS�淶һ�µ��û��˳�����
���淶�Ŀ�ʼ��CSS��һ����֣�Խ����淶Խ��������רҵ����ͨ���ܵ�Ŀ¼��ÿһ���ֿ�ʼǰ��Ŀ¼���������淶�ĵ��Ӱ汾��ӡˢ�汾���ṩ�˼��ĵ������ƣ����Կ��ٵ��ҵ���Ҫ����Ϣ��
�淶д��ʱ���ǵ����ֳ��ַ�ʽ�����ӵĺ�ӡˢ�ġ��������ֳ���Ӧ�����ƣ��û����ǻ��ҵ�һЩ������磬������Ȼ�أ���ӡˢ�汾�У����ӽ��������ã����ڵ��Ӱ汾�У�������ʾҳ�롣����������в��죬����Ӱ汾�DZ��ĵ���Ȩ���Եİ汾��
���淶�����в�����ɣ�
ÿһ��CSS���Զ���Ŀ�ʼ�ǹؼ���Ϣ��ժҪ������������һЩ���ݣ�
ֵ�� | �Ϸ�ȡֵ��� |
��ʼ�� | ��ʼֵ |
�����ڣ� | ���������õ�Ԫ�� |
�̳��ԣ� | �������Ƿ���Լ̳� |
�ٷֱ�ֵ�� | �ٷֱ�ֵ�����ĺ��� |
ý����飺 | ���������õ�ý����� |
��һ�����������ԵĺϷ�ֵ�ķ�Χ��ֵ���͵�ָ���������������ַ�����
��Щ�����������Ĵ��ǹؼ��ʣ�����ԭ�����֣��������ţ��磺red���������ţ�/���Ͷ��ţ�,)Ҳ����ԭ�����֡�
ֵ�������·��������ţ�:
����Ҫ������˫���ߣ�˫�������������ߡ���ˣ��������еĺ�����һ���ģ�
a b | c || d e [ a b ] | [ c || [ d e ]]
ÿһ�����ͣ��ؼ��ʻ�����Խ������������е�һ����
�����Dz�ͬ��ֵ���͵�ʾ����
ֵ�� N | NW | NE
ֵ�� [ <length> | thick | thin ]{1,4}
ֵ�� [<family-name> , ]* <family-name>
ֵ�� <uri>? <color> [ / <color> ]?
ֵ�� <uri> || <color>
��һ����ָ�������Եij�ʼֵ������������Ǽ̳еģ���ʼֵ���Ǹ����ĵ����и�Ԫ�ص�ֵ����ο����һ�Σ����˽���ʽ��ָ��ֵ���̳�ֵ�ͳ�ʼֵ֮�������á�
��һ�����г������������ڵ�Ԫ�ء����е�Ԫ�ض�����Ϊ�������е����ԣ�ֻ����Щ���Զ���ijЩ���͵�Ԫ�ز�������ȾЧ�������磬'white-space'���Կ���Ԫ�������á�
��һ�����г��˸�����ֵ�Ƿ��ǰ��Ԫ������̳ж�������ο����һ�Σ����˽���ʽ��ָ��ֵ���̳�ֵ�ͳ�ʼֵ֮�������á�
��һ����ָ������ٷֱ�ֵ����������ֵ�У���ô�ٷֱ�ֵӦ����εõ����͡����ָ��"N/A"��������Բ����հٷֱ���Ϊ����ֵ��
��һ����ָ�����������õ�ý�������һ��������ָ��������û���֧�ְ�������Щý������е�ý����������Ⱦ�������֧����һ���ԡ�
��Щ��������д�������༴��������������һ�����������ö������ֵ��
���磬'font'��������д���ԣ���������һ��������'font-style'��'font-variant'��'font-weight'��'font-size'��'line-height'��'font-family'�����ԡ�
����д�����������һЩֵʡ�ԣ�ÿһ����ʡ�ԡ������Ծͱ��������ʼֵ���μ����һ�Σ���
Ӧ����һ�����ʾ�����£�
H1 { font-weight: bold; font-size: 12pt; line-height: 14pt; font-family: Helvetica; font-variant: normal; font-style: normal; font-stretch: normal; font-size-adjust: none }
���Լ�дΪһ����д���ԣ�
H1 { font: bold 12pt/14pt Helvetica }
�����У�'font-variant'��'font-stretch'��'font-size-adjust'�Լ�'font-style'�������ǵij�ʼֵ��
������ʾ�Ƿ��÷���ʾ�����������ı�ǣ����Ƿ�ʾ������
���е�HTMLʾ������HTML 4.0�ϸ�DTD�������[HTML40]��һ�£���������ָ�����ĵ�����������
���е�ע�ⶼ�����ο���
�淶��ʾ����ע����ԴHTML�м��Ա�ǣ�CSS1�û��˽���һ���ر�ķ�ʽ������Ⱦ��
���淶���Ӱ��еĴ�ͼ�ζ�������һ������ϸ���͡���˵�����Ǵ��������ݡ�ͼ�����½ǵ�"[D]"��ָ����ϸ���͵����ӡ�
ͼ�κ���ϸ���ͽ����ο���
���淶��W3C��������ڲ����ʽ����ʽ�����ԵĹ����ɹ������˹淶�ı��ߣ��������Ա�У� Brad Chase (Bitstream), Chris Wilson (Microsoft), Daniel Glazman (Electricité de France), Dave Raggett (W3C/HP), Ed Tecot (Microsoft), Jared Sorensen (Novell), Lauren Wood (SoftQuad), Laurie Anna Kaplan (Microsoft), Mike Wexler (Adobe), Murray Maloney (Grif), Powell Smith (IBM), Robert Stevahn (HP), Steve Byrne (JavaSoft), Steven Pemberton (CWI), Thom Phillabaum (Netscape), Douglas Rand (Silicon Graphics), Robert Pernett (Lotus), Dwayne Dicks (SoftQuad)��Sho Kuwamoto (Macromedia)����л���Dz�и��Ŭ����
�����������һЩר��Ҳ�����˹��ף�George Kersher, Glenn Rippel (Bitstream), Jeff Veen (HotWired), Markku T. Hakkinen (The Productivity Works), Martin Dürst (W3C, formerly Universität Zürich), Roy Platon (RAL), Todd Fahrner (Verso), Tim Boland (NIST), Eric Meyer (Case Western Reserve University)��Vincent Quint (W3C)��
�������岿����Ҫ�鹦��Brad Chase (Bitstream) David Meltzer (Microsoft Typography)��Steve Zilles (Adobe)����������صĶ����У�������Щ�������˲�ͬ��ʽ�Ĺ��ף�Alex Beamon (Apple), Ashok Saxena (Adobe), Ben Bauermeister (HP), Dave Raggett (W3C/HP), David Opstad (Apple), David Goldsmith (Apple), Ed Tecot (Microsoft), Erik van Blokland (LettError), François Yergeau (Alis), Gavin Nicol (Inso), Herbert van Zijl (Elsevier), Liam Quin, Misha Wolf (Reuters), Paul Haeberli (SGI), ����ȥ����Phil Karlton (Netscape).
ҳ�����һ�κܶಿ����Robert Stevahn (HP)��Stephen Waters (Microsoft)��д��
Robert Stevahn (HP), Scott Furman (Netscape)��Scott Isaacs (Microsoft)��CSS��λһ�α�д����Ҫ�����ߡ�
Mike Wexler (Adobe)�ǹ����ָ���ɸ�ı��ߣ�������CSS2�ĺܶ��µ����ԡ�
T.V. Raman (Adobe)������AsTeR������������Ƶϵͳ���Ĺ�������������ʽ����ACSS�����������ָ��������˹ؼ��Ĺ��ס����ṩ��ACSS�淶��һ�������IJݸ壬���Dz��γ������ڵĹ淶��������HTML 4.0��ʾ����ʽ���е���������ֵ��������ơ�Ŀǰ����ÿ�춼ʹ�����ǣ�����Emacspeak��Emacs W3���������William Perry��д����ʵ����W3��һ�ߵ�������չ����ϡ�
Todd Fahrner (Verso)�о��˵�ǰ��ȥ���������д����¼�е�ʾ����ʽ����
��лJan Kärrman��html2ps�����ߣ��ڴ������淶��PostScript�汾�и����˺ܴ�İ�����
ͨ�����ӵĺ������еĽӴ���������Ա��CSS2�Ŀ��������˹��ף�Alan Borning, Robert Cailliau, Liz Castro, James Clark, Dan Connolly, Donna Converse, Daniel Dardailler, Al Gilman, Daniel Greene, Scott Isaacs, Geir Ivarsøy, Vincent Mallet, Kim Marriott, Brian Michalowski, Lou Montulli, Henrik Frystyk Nielsen, Jacob Nielsen, Eva von Pepel, William Perry, David Siegel, Peter Stuckey, and Jason White.
����CSS������ؼ����⣬[email protected]�ϵ����ۺ���Ӱ�������ر�أ����Ǹ�лBjorn Backlund, Todd Fahrner, Lars Marius Garshol, Sue Jordan, Ian Hickson, Susan Lesch, Andrew Marshall, MegaZone, Eric Meyer, Russell O'Connor, David Perrell, Liam Quinn, Jon Seymour, Neil St. Laurent, Taylor, Brian Wilson�Լ�Chris Wilson����л���ǵIJ��롣
��лWeb Accessibility Initiative Protocols��Formats Technical Review Working Group (WAI PF)Ϊ���CSS2�Ŀɶ����ṩ�İ�����
��лPhilippe Le Hégaret����CSS��֤���������������ȷ��ʾ�����ṩ�����������
�ر��лArnaud Le Hors���乤��ʹ���ĵ�����������
Adam Costello��ϸ����˱��淶���Ӷ��������˸Ľ���
���лTim Berners-Lee��û������Ҳû����һ�С�
Copyright © 1997 World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved.
Documents on the W3C site are provided by the copyright holders under the following license. By obtaining, using and/or copying this document, or the W3C document from which this statement is linked, you agree that you have read, understood, and will comply with the following terms and conditions:
Permission to use, copy, and distribute the contents of this document, or the W3C document from which this statement is linked, in any medium for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the document, or portions thereof, that you use:
When space permits, inclusion of the full text of this NOTICE should be provided. In addition, credit shall be attributed to the copyright holders for any software, documents, or other items or products that you create pursuant to the implementation of the contents of this document, or any portion thereof.
No right to create modifications or derivatives is granted pursuant to this license.
THIS DOCUMENT IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.
The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to this document or its contents without specific, written prior permission. Title to copyright in this document will at all times remain with copyright holders.