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.」

  • Owner: keithclark/selectivizr
  • Platform: Web browsers
  • License::
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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,同时对其他浏览器隐藏。

Main metrics

Overview
Name With Ownerkeithclark/selectivizr
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 1)
PlatformWeb browsers
License:
所有者活动
Created At2011-01-28 16:43:11
Pushed At2017-02-18 05:58:26
Last Commit At2012-11-26 12:31:59
Release Count2
Last Release Name1.0.2 (Posted on )
First Release Name1.0.1 (Posted on )
用户参与
Stargazers Count1.7k
Watchers Count53
Fork Count244
Commits Count37
Has Issues Enabled
Issues Count74
Issue Open Count54
Pull Requests Count3
Pull Requests Open Count11
Pull Requests Close Count15
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

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.