Rotating a div element

前端 未结 5 1049
忘掉有多难
忘掉有多难 2021-02-05 18:52

Is it possible to rotate a div element using Javascript & NOT using HTML 5?

If so what attributes of the element do I set/change to make it rotate? Ie, div.what?

5条回答
  •  遇见更好的自我
    2021-02-05 19:32

    Yes, it is possible to rotate a div not using HTML5, but using CSS3.

    You can experiment with CSS rotation on CSS3 Please (toggle the .box_rotate rule on).

    For more info, Google for: css rotate

    If you want a way to have rotated text that works on all browsers (including IE6) then try Raphaël.

提交回复
热议问题