How can I rotate an HTML
90 degrees?

后端 未结 6 2031
感情败类
感情败类 2020-11-28 22:45

I have a

that I want to rotate 90 degrees:

How can I do this?

6条回答
  •  被撕碎了的回忆
    2020-11-28 23:21

    We can add the following to a particular tag in CSS:

    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
    

    In case of half rotation change 90 to 45.

提交回复
热议问题