使用 CSS3 实现 X 轴 3D 变换
cssweb developmentfront end technology更新于 2025/5/15 17:48:17
您可以尝试运行以下代码,使用 CSS3 实现 X 轴 3D 变换
示例
<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>
tutorials point.com
</div>
<p>
Rotate X-axis
</p>
<div id = "myDiv">
tutorials point.com.
</div>
</body>
</html>
相关文章
有用资源
css 参考教程 - 该教程包含有关 css 的更多信息:https://www.cainiaomax.com/css/

