简体   繁体   English

这些选择器是CSS 2.1还是CSS 3的一部分?

[英]Are these selectors part of CSS 2.1 or CSS 3?

Are these selectors part of CSS 2.1, CSS 3, or both? 这些选择器是CSS 2.1,CSS 3还是两者的一部分?

E[att^="val"]
E[att$="val"]
E[att*="val"]
E:last-child
E ~ F

Are these all the available selectors in CSS? 这些是CSS中所有可用的选择器吗? Please tell me which selector is part of which CSS version? 请告诉我哪个选择器是哪个CSS版本的一部分?

*
E
.class
#id
E F
E > F
E + F
E[attribute]
E[attribute=value]
E[attribute~=value]
E[attribute|=value]
:first-child
:lang()
:before
::before
:after
::after
:first-letter
::first-letter
:first-line
::first-line
E[attribute^=value]
E[attribute$=value]
E[attribute*=value]
E ~ F
:root
:last-child
:only-child
:nth-child()
:nth-last-child()
:first-of-type
:last-of-type
:only-of-type
:nth-of-type()
:nth-last-of-type()
:empty
:not()
:target
:enabled
:disabled
:checked

All CSS 3. 所有CSS 3。

The last one E ~ F is the general sibling combinator . 最后一个E ~ F通用的同级组合器

See the quirksmode.org compatibility table for info on which selector is supported by which browser. 有关哪个浏览器支持哪个选择器的信息,请参见quirksmode.org兼容性表

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM