使用 CSS 沿另一個方向進行矩陣變換


您可以嘗試執行以下程式碼來使用 CSS 沿另一個方向進行矩陣變換

示例

即時演示

<html>
   <head>
      <style>
         div {
            width: 300px;
            height: 100px;
            background-color: pink;
            border: 1px solid black;
         }
         div#myDiv2 {
            /* IE 9 */
            -ms-transform: matrix(1, 0, 0.5, 1, 150, 0);
            /* Safari */
            -webkit-transform: matrix(1, 0, 0.5, 1, 150, 0);
            /* Standard syntax */
            transform: matrix(1, 0, 0.5, 1, 150, 0);
         }
      </style>
   </head>
   <body>
      <div>
         Tutorialspoint.com
      </div>
      <div id = "myDiv2">
         Tutorialspoint.com
      </div>
   </body>
</html>

輸出

更新日期:20-Jun-2020

47 次瀏覽

開啟你的 職業生涯

完成課程即可獲得認證

開始
廣告
© . All rights reserved.