Selectivizr

selectivizr 是一个 JavaScript 实用程序,它模拟 Internet Explorer 6-8 中的 CSS3 伪类和属性选择器。「selectivizr is a JavaScript utility that emulates CSS3 pseudo-classes and attribute selectors in Internet Explorer 6-8.」

  • 所有者: keithclark/selectivizr
  • 平台: Web browsers
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Selectivizr

IE 6-8 的 CSS3 选择器

selectivizr 是一个 JavaScript 实用程序,它可以在 Internet Explorer 6-8 中模拟 CSS3 伪类和属性选择器。 只需在页面中包含脚本,其余的将由 selectivizr 完成。

要使用该库,您需要包括一个受支持的库:

  • jQuery (1.3+)
  • Dojo (1.5.0+)
  • Prototype (1.6.1+)
  • Yahoo UI Library (2.8.0+)
  • DOMAssistant (2.8.0+)
  • MooTools (1.3+)
  • NWMatcher (1.2.3+)

然后在样式表后添加以下条件注释:

<!--[if (gte IE 6)&(lte IE 8)]>
  <script type="text/javascript" src="selectivizr.js"></script>
  <noscript><link rel="stylesheet" href="[fallback css]" /></noscript>
<![endif]-->

这会将 selectivizr.js 和一个可选的 fallback CSS 文件添加到 IE6-8,同时对其他浏览器隐藏。

主要指標

概覽
名稱與所有者keithclark/selectivizr
主編程語言JavaScript
編程語言JavaScript (語言數: 1)
平台Web browsers
許可證
所有者活动
創建於2011-01-28 16:43:11
推送於2017-02-18 05:58:26
最后一次提交2012-11-26 12:31:59
發布數2
最新版本名稱1.0.2 (發布於 )
第一版名稱1.0.1 (發布於 )
用户参与
星數1.7k
關注者數53
派生數244
提交數37
已啟用問題?
問題數74
打開的問題數54
拉請求數3
打開的拉請求數11
關閉的拉請求數15
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?

Selectivizr

CSS3 selectors for IE 6-8

selectivizr is a JavaScript utility that emulates CSS3 pseudo-classes
and attribute selectors in Internet Explorer 6-8. Simply include the
script in your pages and selectivizr will do the rest.

To use the library, you'll need to include one of the supported libraries:

  • jQuery (1.3+)
  • Dojo (1.5.0+)
  • Prototype (1.6.1+)
  • Yahoo UI Library (2.8.0+)
  • DOMAssistant (2.8.0+)
  • MooTools (1.3+)
  • NWMatcher (1.2.3+)

Then add the following conditional comment AFTER your stylesheets:

<!--[if (gte IE 6)&(lte IE 8)]>
  <script type="text/javascript" src="selectivizr.js"></script>
  <noscript><link rel="stylesheet" href="[fallback css]" /></noscript>
<![endif]-->

This adds the selectivizr.js and an optional fallback CSS file to IE6-8 while
hiding for other browsers.