문자

语法:

E:only-child : {attribute}

相关伪类: E:root | E:nth-child(n) | E:nth-last-child(n) | E:nth-of-type(n) | E:nth-last-of-type(n) | E:last-child | E:first-of-type | E:only-of-type | E:empty

说明:

匹配属于父元素中唯一子元素的E

兼容性:

类型 IEInternet Explorer FirefoxFirefox ChromeChrome OperaOpera SafariSafari
版本 (×)IE6 (×)Firefox 2.0 (√)Chrome 1.0.x (√)Opera 9.63 (√)Safari 3.1
(×)IE7 (√)Firefox 3.0 (√)Chrome 2.0.x (√)Safari 4Public beta
(×)IE8 (√)Firefox 3.5

示例:

快速跳转

  • 语法
  • 说明
  • 兼容性
  • 示例
이전 기사: 다음 기사: