Internet Explorer 是否支持 CSS 转换?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5103283/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Does Internet Explorer support CSS transitions?
提问by David Johnstone
CSS transitionsare a very neat way of animating changes in CSS properties. Do any versions of Internet Explorer support them?
CSS 过渡是一种非常巧妙的方式,可以为 CSS 属性的变化设置动画。是否有任何版本的 Internet Explorer 支持它们?
回答by Pekka
The page you link to has a compatibility table.
您链接到的页面有一个兼容性表。
Chrome
1.0 (-webkit prefix)
Firefox
4.0 (2.0) (-moz prefix)
16.0 (16.0) (no prefix)
Internet Explorer
10.0 (no prefix)
Opera
10.5 (-o prefix)
12.0 (no prefix)
Safari
3.2 (-webkit prefix)
There is also an article on MSDN about CSS3 transitions in Internet Explorer.
MSDN上还有一篇关于Internet Explorer 中的 CSS3 转换的文章。
回答by CatalinBerta
I recommend using http://caniuse.com/to check the support and compatibility of html/css features, as it will display data of most browsers on the market share.
我建议使用http://caniuse.com/来检查 html/css 功能的支持和兼容性,因为它会显示市场份额上大多数浏览器的数据。
Here's the link for transitions: http://caniuse.com/#search=transitions
这是转换的链接:http: //caniuse.com/#search=transitions
For older versions of IE, there are various polyfills which you can find on the rich www
对于旧版本的 IE,您可以在丰富的 www 上找到各种 polyfills
回答by rach8garg
There is no native support to CSS transforms and transitions in IE8.
IE8 中没有对 CSS 转换和转换的原生支持。
Perhaps you need to go with some available JavaScript libraries to produce such effects:
也许你需要使用一些可用的 JavaScript 库来产生这样的效果:
- www.useragentman.com/blog/2010/03/09/cross-browser-css-transforms-even-in-ie/#more-896
- www.jqueryui.com/effect/
- www.useragentman.com/blog/2010/03/09/cross-browser-css-transforms-even-in-ie/#more-896
- www.jqueryui.com/effect/
A trade-off : CSS transitions take advantage of native graphic acceleration of browser (GPU) and thus are smoother than using JavaScript effects.
权衡:CSS 过渡利用浏览器 (GPU) 的原生图形加速,因此比使用 JavaScript 效果更流畅。