CSS transform not working IE

前端 未结 3 1509
鱼传尺愫
鱼传尺愫 2020-12-19 01:18

I have this stylesheet

.rotate div img
{
    -webkit-transform:  translate(-18cm, 2cm) rotate(-90deg); /* WebKit */
    -webkit-transform-origin: top right;         


        
相关标签:
3条回答
  • 2020-12-19 01:55

    -ms-transform does not exist in IE10+. IE8 and older have no support for CSS transforms, IE9 uses only -ms-transform, and IE10 and newer use only the unprefixed transform.

    See http://caniuse.com/#feat=transforms2d for more info if needed.

    0 讨论(0)
  • 2020-12-19 02:11

    No need for fancy prefixes, just use normal transform to target MS IE!

    0 讨论(0)
  • 2020-12-19 02:15

    I has same issue but resolved by setting up media attribute to style tag as follows

    <style type="text/css" media="print">
    
    0 讨论(0)
提交回复
热议问题