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

首頁 > 開發 > CSS > 正文

CSS 選擇器支持列表

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

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.
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 西和县| 鹤庆县| 社会| 松滋市| 明光市| 鲁甸县| 喀喇| 常德市| 青浦区| 新昌县| 寻甸| 理塘县| 宜黄县| 屏南县| 连江县| 仙居县| 孟津县| 福建省| 班戈县| 黄龙县| 黔东| 六枝特区| 洞口县| 蓝田县| 阳曲县| 苗栗市| 渭源县| 邛崃市| 孟连| 天祝| 内丘县| 襄城县| 阿坝县| 固阳县| 海晏县| 文昌市| 新津县| 察雅县| 金寨县| 惠水县| 永平县|