使用CSS倾斜y轴旋转div

您可以尝试使用CSS运行以下代码以使div倾斜y轴-

示例

<html>
   <head>
      <style>
         div {
             width: 300px;
             height: 100px;
             background-color: pink;
             border: 1px solid black;
          }
          div#skewDiv {
             /* IE 9 */
             -ms-transform: skewY(20deg);
             /* Safari */
             -webkit-transform: skewY(20deg);
             /* Standard syntax */
             transform: skewY(20deg);
          }
      </style>
   </head>
   <body>
      <div>
         Welcome to my website.
      </div>
      <div id = "skewDiv">
         Welcome to my website.
      </div>
   </body>
</html>