js垫片_垫片:使IE支持CSS3的四种方法

js垫片

Broadly speaking, there are three methods for bringing Internet Explorer 6 – 8 up to speed with modern web standards:

广义上讲,有三种方法可以使Internet Explorer 6 – 8与现代Web标准保持同步:

  1. Replace the rendering engine in IE with something better, such as ChromeFrame, that understands both CSS3 and HTML5. (It can be difficult to convince clients and visitors to a site to do this, however).

    用更好的东西替换IE中的呈现引擎,例如ChromeFrame ,它可以理解CSS3和HTML5。 (但是,很难说服客户和网站访问者这样做)。

    If your page is written in HTML, try to work in IE-equivalents to CSS by using -ms- vendor prefix selectors for IE9, and / or work in older Microsoft proprietary equivalents to transforms and gradients, into the CSS.

    如果您的网页是用HTML编写的,请尝试通过使用-ms- IE9的-ms- 供应商前缀选择器以与IE等效CSS方式工作,和/或以较旧的Microsoft专有等效方式将其转换和渐变为CSS。

    "Shim" the web page with JavaScript that will allow IE6 – 8 to understand CSS2 & 3 selectors, properties and values.

    使用JavaScript对网页进行“填充”,使IE6-8能够理解CSS2和3的选择器,属性和值。

If you choose to take the second option, I would suggest using a transform translator to generate CSS for IE 6 – 8, and using ColorZilla to do the same process for gradients.

如果选择第二种方法,我建议使用转换转换器为IE 6 – 8生成CSS,并使用ColorZilla对渐变进行相同的处理

If you take the last option, there are a number of possible solutions. Previously, I've discussed using JavaScript to make IE aware of HTML5. Some of those scripts can also make IE CSS3-aware; what follows are exclusively CSS3 solutions for IE written in JavaScript.

如果您选择了最后一个选项,则有许多可能的解决方案。 以前,我已经讨论过使用JavaScript使IE知道HTML5 。 其中一些脚本还可以使IE CSS3识别; 以下是专门用JavaScript编写的IECSS3解决方案。

翻译自: https://thenewcode.com/309/Shims-Four-Ways-To-Make-IE-Support-CSS3

js垫片

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值