国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > CSS > 正文

CSS選擇器支持列表

2024-07-11 08:22:23
字體:
來源:轉載
供稿:網友

update 6/30/09: firefox 3.5 was released today. like safari 3.1 and newer (including safari 4 beta), opera 9.64 and newer and google chrome all support all css2.1 and css3 selectors. here is a breakdown of all the browsers i’ve tested:

  • green / √ means current support.
  • orange / δ means that the browsers have some support for the selector.
  • red / χ means that the browser is non-compliant.
  browsers
patternmeaningie6ie7ie8firefoxsafarioperanetscchrome
e:active

 

e:hover

e:focus

dynamic pseudo-classes

 

matches e during certain user actions.

δδ
δδ
χχ
e:before

 

e:after

static pseudo-classes
see generated content
χχ
χχ
 iphnwindows xpmac osx
selectorsaf 3.2saf 3.0goog chrmff 3.5ff 3.0

 

9.0

saf

 

3.0

ie8

ie7 in ie8

saf 4 betasaf 3.2ff 3
*
e
.classδ
#id
e f
e > fχ
e + f χ
e[attr]δδδχδ
e[attr=val]δδδδδχδδδ
e[attr~=val]δδδδδδχδδδ
e[attr|=val]δδδδδδχδδδ
:first-childδδδδδδδχδδ
:linkχ
:visitedχ
:lang()δχχχχ
:beforeχχχχ
::beforeχχχχχ
:afterχχχχ
::afterχχχχχ
:first-letterχ
::first-letterχχχχ
:first-lineχ
::first-lineχχχχ
the following selectors are new to css3 (above were in previous versions)
e[attr^=val]δδδχδχχχδδδ
e[attr$=val]δδδχδχχχδδδ
e[attr*=val]δδδδχχχδδδ
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χχχχχ

ie8 css selector support

ie8 supports the css2.1 selectors, including pseudoclasses but not pseudo elements. (see double colon notation). ie8 has support for has support for accessible rich internet applications (aria)

to force ie8 to render your page in ie8 compliance mode, include the following meta tag:

<meta http-equiv="x-ua-compatible" content="ie=8" />

ie7 within ie8 css selector support

the css selector support of ie7 within ie8 (when ie8 displayes a page in ie7 compatibility mode) is identical to ie7 as a standalone. however, the css properties do render differently. i will have to blog about that in a seperate entry when i get around to garnering all the differences.

ie7 within ie8 understands the ie7 star hack. because the css renders differently even though the selector support is the same, it may take a bit before i figure out the best filter.

iphone

the original version of the iphone came with a safari browser that did not support all css3 selectors. the currently active version of safari on the iphone does support all css3 selectors. the grid below has been updated to reflect that. i have kept the old version of the iphone css3 support just in case you want to support "unlocked" version of the iphone, that do not get updated as often. personally, i assume all iphones hitting my apps support all css3. for more information on iphones, see iphone css support

safari 4 beta css selector support

safari 4.0 beta was released feb. 24, 2008. since safari 3.2 supported all css selectors, this safari 4 part of the post may be a bit mute. safari 4 beta also supports aria and for css effects, animation and canvas. it also seems to have many more native debugging tools native to the application (or maybe what i see is a carry over from the tools i installed in my previous version of safari). safari 4 is acid 3 compliant!

ie8 notes:

  • e[attr]does not match the attribute when the attribute value is empty or not written correctly.

ie7 within ie8 notes:

  • e[attr] same as ie8, does not match the attribute when the attribute value is empty or not written correctly.
  • e[attr~=val]only issue is that for this selector to work, the value of the attribute is case sensitive
  • e[attr|=val]ie7 has some case sensitivity issues, but generally works.
  • :first-child ie7 considers a comment or a text node as a first-child, when it shouldn’t: only elements should be considered children. so, ie7 matches the first comment instead of the first child. if it sees text or a comment as the first child, it will not consider the first element as the first child.
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 衡南县| 新巴尔虎右旗| 平潭县| 田东县| 河曲县| 延安市| 龙江县| 安达市| 南靖县| 富民县| 青铜峡市| 武强县| 垦利县| 营口市| 吴旗县| 湖口县| 蒲江县| 禹城市| 咸宁市| 城市| 峨边| 内乡县| 靖宇县| 上蔡县| 阿拉善左旗| 紫阳县| 自治县| 杨浦区| 谷城县| 万盛区| 龙游县| 河西区| 罗江县| 仙游县| 宜州市| 肃宁县| 肥城市| 永丰县| 城固县| 内丘县| 淮南市|