Rotating clickable elements in IE8+

前端 未结 3 1219
长发绾君心
长发绾君心 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:03

    this solved my problem across all browsers. My text was getting clipped after rotation, the position, top and padding properties helped me out. width of 100% is important. filter and ms transform is imp for IE

    #rotationCSS    { 
        width:100%;
        font-size:1.3em;
        font-weight:bold;
        float:right;  
        -webkit-transform: rotate(90deg);  /* Chrome, Safari 3.1+ */
        -moz-transform: rotate(90deg);  /* Firefox 3.5-15 */
        -ms-transform: rotate(90deg)!important;  /* IE 9 */
        -o-transform: rotate(90deg);  /* Opera 10.50-12.00 */
        transform: rotate(90deg);  /* Firefox 16+, IE 10+, Opera 12.10+ */
        position: absolute;
        top: 20px;
        padding: 35px 20px 0px 10px;
        filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
    }
    

提交回复
热议问题