使用rotationX(angle)方法通过将x轴与CSS3一起旋转变换元素-
<html> <head> <style> div { width: 200px; height: 100px; background-color: pink; border: 1px solid black; } div#myDiv { -webkit-transform: rotateX(150deg); /* Safari */ transform: rotateX(150deg); /* Standard syntax */ } </style> </head> <body> <div> nhooo.com </div> <p>Rotate X-axis</p> <div id = "myDiv"> nhooo.com </div> </body> </html>