
CSS 中的变换属性用于对元素应用 2D 或 3D 变换。您可以尝试运行以下代码来实现转换属性 -
示例
现场演示
<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 200px;
height: 100px;
background-color: gray;
transform: rotate(10deg);
}
</style>
</head>
<body>
<h1>Rotation</h1>
<div>Demo</div>
</body>
</html>










