Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> CSS

การใช้งาน Transform Property ใน CSS

คุณสมบัติ transform ใน 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>