1
这些选择器是CSS 2.1,CSS 3还是两者的一部分?这些选择器是CSS 2.1还是CSS 3的一部分?
E[att^="val"]
E[att$="val"]
E[att*="val"]
E:last-child
E ~ F
难道这些都在CSS可用的选择? 请告诉我哪个选择器是哪个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
但是有些甚至在IE7中也被支持 – 2010-07-04 14:39:49
所以总结一下:'E:last-child','E [att^=“val”]','E [att $ =“val”]' 'E [att * =“val”]'和'E〜F'都是用CSS引入的3. – Gumbo 2010-07-04 14:42:36
@ metal-gear true! – 2010-07-04 14:43:01