CSS3旋转替代? [英] CSS3 rotate alternative?
问题描述
我使用CSS3规则rotate旋转包含文本的 div
。您可以在此处查看该页面: http://vitaminjdesign.com/v2/socialmedia.html 。我正在寻找跨浏览器支持旋转 div
;但是,此CSS3规则将无法在IE上工作。是否有一个jQuery选项或另一个JavaScript解决方案,将产生相同的结果,与跨浏览器兼容性?
I am using the CSS3 rule "rotate" to rotate a div
containing text. You can see the page here: http://vitaminjdesign.com/v2/socialmedia.html. I am looking for cross-browser support for rotating the div
; however, this CSS3 rule won't work on IE. Is there a jQuery option or another JavaScript solution that will yield the same result, with cross-browser compatibility?
推荐答案
href =http://www.useragentman.com/blog/2010/03/09/cross-browser-css-transforms-even-in-ie/ =nofollow noreferrer>砂纸,您可以使用此CSS规则:
Using Sandpaper, you can use this CSS rule:
-sand-transform: rotate(90deg);
即使在IE中,它也可以在每个浏览器中使用。
And it'll work in every browser - even in IE.
这篇关于CSS3旋转替代?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!