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

การแปลง 3D แกน Z ด้วย CSS3


คุณสามารถลองเรียกใช้โค้ดต่อไปนี้เพื่อใช้การแปลงแกน Z 3D ด้วย CSS3:

ตัวอย่าง

<html>
   <head>
      <style>
         div {
            width: 200px;
            height: 100px;
            background-color: pink;
            border: 1px solid black;
         }
         div#zDiv {
            -webkit-transform: rotateZ(90deg);
            /* Safari */
            transform: rotateZ(90deg);
            /* Standard syntax */
         }
      </style>
   </head>
   <body>
      <p>rotate Z axis</p>
      <div id = "zDiv">
         tutorialspoint.com.
      </div>
   </body>
</html>

ผลลัพธ์

การแปลง 3D แกน Z ด้วย CSS3