admin管理员组文章数量:1403229
Adding -ms-transform:rotate(90deg)
dynamically using jQuery to the element. But, its not working in IE 11. However, -webkit-transform:rotate(90deg)
is working in Chrome.
No transformation is happening on page.
Added meta :
<meta http-equiv=X-UA-Compatible content="IE=9;IE=10;IE=11;IE=Edge,chrome=1">
Adding -ms-transform:rotate(90deg)
dynamically using jQuery to the element. But, its not working in IE 11. However, -webkit-transform:rotate(90deg)
is working in Chrome.
No transformation is happening on page.
Added meta :
<meta http-equiv=X-UA-Compatible content="IE=9;IE=10;IE=11;IE=Edge,chrome=1">
Share
Improve this question
edited May 19, 2016 at 6:40
Atul Sharma
asked May 19, 2016 at 6:25
Atul SharmaAtul Sharma
10.8k10 gold badges41 silver badges69 bronze badges
16
- 1 which version of IE does it not work in? I believe that should work on IE9 or later. If you're using IE8, there's an answer here which might help: stackoverflow./questions/11900870/… – Flynn1179 Commented May 19, 2016 at 6:32
- According to IE css transformations are supported after IE9. I'm using IE11. – Atul Sharma Commented May 19, 2016 at 6:34
-
Do you also have the
transform
property? Prefixes are phased out when the browser gets full support of the feature. – JJJ Commented May 19, 2016 at 6:37 - @Juhana yes.. Check the image ... Added now. – Atul Sharma Commented May 19, 2016 at 6:39
- 1 But how about manually adding ONLY the transform without the prefix? – thepio Commented May 19, 2016 at 7:08
1 Answer
Reset to default 4Based on the ments on your question you could then check the IE version with something like this:
http://jsfiddle/jquerybyexample/gk7xA/
And insert the transform
property with or without the prefix -ms-
according to this checkup. The example above is just pure JavaScript because:
The jQuery.browser() method has been deprecated since jQuery 1.3 and is removed in 1.9. If needed, it is available as part of the jQuery Migrate plugin. We remend using feature detection with a library such as Modernizr.
EDIT:
And actually you said you are using jQuery 1.7.2 so you could use the jQuery method to detect the browser and version.
Documentation: http://api.jquery./jquery.browser/
本文标签: javascriptmstransform not working with IE 11Stack Overflow
版权声明:本文标题:javascript - -ms-transform not working with IE 11 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744380427a2603475.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论