| [DHTMLET?](http://www.dhtmlet.com) | [屬性清單?](#)|?相關內容:SEE ALSO------------------------------------------??樣式表偽類 Pseudo-Classes??樣式表偽對象 Pseudo-Elements??樣式表規則 At-Rules??樣式表聲明 Declaration??樣式表單位 Units??樣式表屬性 Properties |
|-----|-----|
Selectors????選擇符
?
<table class="meme" border="0" cellpadding="0" cellspacing="1"><tr><th nowrap="nowrap">Selectors<br/>選擇符</th><th nowrap="nowrap">CSS Version<br/>版本</th><th nowrap="nowrap">Compatibility<br/>兼容性</th><th nowrap="nowrap">Syntax Samples<br/>語法</th><th nowrap="nowrap">Description<br/> 簡介</th></tr><tr><td><a href="s_type.html">類型選擇符(Type Selectors)</a></td><td>CSS1</td><td>IE4+ , NS4+</td><td>E1</td><td>以文檔語言對象類型作為選擇符</td></tr><tr><td><a href="s_universal.html" class="no">通配選擇符(Universal Selector)</a></td><td>CSS2</td><td><span class="span2">NONE</span></td><td>*</td><td> 選定文檔目錄樹(DOM)中的所有類型的單一對象</td></tr><tr><td><a href="s_descendant.html">包含選擇符(Descendant Selectors)</a></td><td>CSS1</td><td>IE4+ , NS4+</td><td>E1 E2</td><td> 選擇所有被E1包含的E2。即E1.contains(E2)==true</td></tr><tr><td><a href="s_child.html" class="no">子對象選擇符(Child Selectors)</a></td><td>CSS2</td><td><span class="span2">NONE</span></td><td>E1 > E2</td><td>選擇所有作為E1子對象的E2</td></tr><tr><td><a href="s_adjacent.html" class="no">相鄰選擇符(Adjacent Sibling Selectors)</a></td><td>CSS2</td><td><span class="span2">NONE</span></td><td>E1 + E2</td><td>選擇緊貼在對象E1之后的所有E2對象</td></tr><tr><td><a href="s_attribute.html" class="no">屬性選擇符(Attribute Selectors)</a></td><td>CSS2</td><td><span class="span2">NONE</span></td><td>E1[attr]</td><td>選擇具有attr屬性的E1</td></tr><tr><td><a href="s_attribute.html" class="no">屬性選擇符(Attribute Selectors)</a></td><td>CSS2</td><td><span class="span2">NONE</span></td><td>E1[attr=value]</td><td>選擇具有attr屬性且屬性值等于value的E1</td></tr><tr><td><a href="s_attribute.html" class="no">屬性選擇符(Attribute Selectors)</a></td><td>CSS2</td><td><span class="span2">NONE</span></td><td>E1[attr~=value]</td><td> 選擇具有attr屬性且屬性值為一用空格分隔的字詞列表,其中一個等于value的E1</td></tr><tr><td><a href="s_attribute.html" class="no">屬性選擇符(Attribute Selectors)</a></td><td>CSS2</td><td><span class="span2">NONE</span></td><td>E1[attr|=value]</td><td>選擇具有attr屬性且屬性值為一用連字符分隔的字詞列表,由value開始的E1</td></tr><tr><td><a href="s_id.html">ID選擇符(ID Selectors)</a></td><td>CSS1</td><td>IE4+ , NS4+</td><td>#sID</td><td>以文檔目錄樹(DOM)中作為對象的唯一標識符的ID作為選擇</td></tr><tr><td><a href="s_class.html">類選擇符(Class Selectors)</a></td><td>CSS1</td><td>IE4+ , NS4+</td><td>E1.className</td><td> 在HTML中可以使用此種選擇符。其效果等同于E1[class~=className]</td></tr><tr><td><a href="s_grouping.html">選擇符分組(Grouping)</a></td><td>CSS1</td><td>IE4+ , NS4+</td><td>E1,E2,E3</td><td>將同樣的定義應用于多個選擇符,可以將選擇符以逗號分隔的方式并為組</td></tr></table>
?
?
說明:這種顏色是CSS2標準選擇符。這種顏色是IE建議樣式表選擇符。這種顏色是NS私有選擇符。這種顏色是目前尚無瀏覽器支持的選擇符。
蘇沈小雨制作?保留所有權利
©2001 rain1977.comer . All rights reserved . Terms of Use .
- 簡介 Introducing
- 樣式表簡介 Introduction to CSS2
- 關于本手冊 About this handbook
- 蘇沈小雨 About rain1977
- 屬性 Properties
- 字體 Font
- font
- color
- font-family
- font-size
- font-size-adjust
- font-stretch
- font-style
- font-weight
- text-decoration
- text-underline-position
- text-shadow
- font-variant
- text-transform
- line-height
- letter-spacing
- word-spacing
- 文本 Text
- text-indent
- text-overflow
- vertical-align
- text-align
- layout-flow
- writing-mode
- direction
- unicode-bidi
- word-break
- line-break
- white-space
- word-wrap
- text-autospace
- text-kashida-space
- text-justify
- ruby-align
- ruby-overhang
- ruby-position
- ime-mode
- layout-grid
- layout-grid-char
- layout-grid-char-spacing
- layout-grid-line
- layout-grid-mode
- layout-grid-type
- 背景 Background
- background
- background-attachment
- background-color
- background-image
- background-position
- background-positionX
- background-positionY
- background-repeat
- layer-background-color
- layer-background-image
- 定位 Positioning
- position
- z-index
- top
- right
- bottom
- left
- 尺寸 Dimensions
- height
- max-height
- min-height
- width
- max-width
- min-width
- 布局 Layout
- clear
- float
- clip
- overflow
- overflow-x
- overflow-y
- display
- visibility
- 外補丁 Margins
- margin
- margin-top
- margin-right
- margin-bottom
- margin-left
- 輪廓 Outlines
- outline
- outline-color
- outline-style
- outline-width
- 邊框 border
- border
- border-color
- border-style
- border-width
- border-top
- border-top-color
- border-top-style
- border-top-width
- border-right
- border-right-color
- border-right-style
- border-right-width
- border-bottom
- border-bottom-color
- border-bottom-style
- border-bottom-width
- border-left
- border-left-color
- border-left-style
- border-left-width
- 內容 Generated Content
- include-source
- quotes
- content
- counter-increment
- counter-reset
- 內補丁 Paddings
- padding
- padding-top
- padding-right
- padding-bottom
- padding-left
- 列表 Lists
- list-style
- list-style-image
- list-style-position
- list-style-type
- marker-offset
- 表格 table
- border-collapse
- border-spacing
- caption-side
- empty-cells
- table-layout
- speak-header
- 滾動條 Scrollbar
- scrollbar-3d-light-color
- scrollbar-highlight-color
- scrollbar-face-color
- scrollbar-arrow-color
- scrollbar-shadow-color
- scrollbar-dark-shadow-color
- scrollbar-base-color
- 打印 Printing
- page
- page-break-after
- page-break-before
- page-break-inside
- marks
- orphans
- size
- widows
- 聲音 Aural
- voice-family
- volume
- elevation
- azimuth
- stress
- richness
- speech-rate
- cue
- cue-after
- cue-before
- pause
- pause-after
- pause-before
- pitch
- pitch-range
- play-during
- speak
- speak-numeral
- speak-punctuation
- 其它 Classification
- cursor
- behavior
- filter
- zoom
- 選擇符 Selectors
- 通配選擇符 Universal Selector
- 類型選擇符 Type Selectors
- 屬性選擇符 Attribute Selectors
- 包含選擇符 Descendant Selectors
- 子對象選擇符 Child Selectors
- ID選擇符 ID Selectors
- 類選擇符 Class Selectors
- 選擇符分組 Grouping
- 偽類 Pseudo-Classes
- :link
- :hover
- :active
- :visited
- :focus
- :first-letter
- :first-line
- :first-child
- :first
- :left
- :right
- :lang
- 偽對象 Pseudo-Elements
- :before
- :after
- 規則 At-Rules
- @import
- @charset
- @font-face
- @fontdef
- @page
- @media
- 聲明 Declaration
- !important
- 單位 Units
- 長度 Length
- px
- em
- ex
- pt
- pc
- in
- mm
- cm
- 顏色 Color
- rgb(RGB)
- #RRGGBB
- Color Name
- 角度 Angle
- deg
- grad
- rad
- 時間 Time
- s
- ms
- 頻率 Frequency
- Hz
- kHz
- 附錄 Appendix
- 顏色表 Color Table
- 設備類型 Media Types
- 字符集識別 Character Set Recognition
- ISO Latin-1字符集 ISO Latin-1 Character Set
- HTML附加命名實體
- 特殊文本和BIDI文本的字符實體