jquery text rotation

前端 未结 5 1386
隐瞒了意图╮
隐瞒了意图╮ 2021-02-13 12:43

I\'ve got a simple text inside a div, something like the following;

This is an example text
5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-13 13:05

    It is possible to rotate with css3

    transform: rotate(20deg);
    

    Remember that some browser require vendor prefix.

    .box_rotate {
         -moz-transform: rotate(20deg);  /* FF3.5+ 
           -o-transform: rotate(20deg);  /* Opera 10.5 
      -webkit-transform: rotate(20deg);  /* Saf3.1+, Chrome 
          -ms-transform: rotate(20deg);  /* IE9 
              transform: rotate(20deg);  
                 filter: progid:DXImageTransform.Microsoft.Matrix(/* IE6–IE9  
                         M11=0.9396926207859084, M12=-0.3420201433256687, M21=0.3420201433256687, M22=0.9396926207859084, sizingMethod='auto expand');
                   zoom: 1;
    }
    

    Source http://css3please.com/

提交回复
热议问题