How to use css rotation property

青灯夜游
Release: 2019-05-29 16:01:04
Original
3508 people have browsed it

The rotation attribute is a new attribute of CSS3, which is used to rotate block-level elements counterclockwise around the specified point defined by the rotation-point attribute. Borders, padding, content, and background (not fixed) are also rotated! However, currently mainstream browsers do not support this attribute.

How to use css rotation property

How to use the css rotation property?

The rotation attribute rotates the block-level element counterclockwise around the specified point defined by the rotation-point attribute.

Syntax:

rotation: angle;
Copy after login

Attribute value:

●angle: element rotation angle. Possible values: 0deg to 360deg.

Note:Borders, padding, content and background (non-fixed) will also be rotated! Currently, mainstream browsers do not support the rotation attribute.

css rotation property example

     

旋转效果

注释:目前没有浏览器支持 rotation-point 或 rotation 属性。

Copy after login

The above is the detailed content of How to use css rotation property. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
css
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!