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.