<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.box1{
width: 600px;
height: 600px;
border: 5px solid black;
display: flex;
transform-style: preserve-3d;
perspective: 800px;
}
.box2{
margin: auto;
width: 200px;
height: 200px;
background: red;
/* transform: scaleZ(10) rotateX(45deg); */
transform: scale3d(1,1,10) rotateX(45deg);
}
</style>
</head>
<body>
<div class="box1">
<div class="box2"></div>
</div>
</body>
</html>
04-08
4418
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)