Rotating clickable elements in IE8+

前端 未结 3 1221
长发绾君心
长发绾君心 2021-01-07 07:32

I am attempting to rotate clickable elements in IE8 using the proprietary MS filter DXImageTransform.Microsoft.Matrix. I\'ve calculated the matrix correctly and

3条回答
  •  悲哀的现实
    2021-01-07 08:05

    I've achieved the effective result in all browsers I was targetting by splitting the CSS rules up by browser support, and applying classes using conditional comments to deal with IE.

    The big showstopper was the fact that IE9 would rotate the element visibly as a result of DXImageTransform.Microsoft.Matrix(M11=0, M12=-1, M21=1, M22=0, sizingMethod='auto expand') but wouldn't rotate the interactable bounding box. I've read since posting this question that IE9 has reduced support for filters, and so I've set it up so that for IE7/8 it uses the filter, and for IE9 it uses -ms-transform.

    Less elegant, but now it works.

提交回复
热议问题