老师请检查
来源:2-14 编程练习
练习时常两年半的前端练习生
2022-03-28 18:39:48
<!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>
*{
margin: 0;
padding: 0;
}
.box{
perspective: 3000px;
position: relative;
width: 100px;
height: 100px;
margin: 50px auto;
}
.box1,.box2,.box3{
position: absolute;
top: 0;
left: 0;
width: 200px;
height: 200px;
}
.box1{
background-color: blue;
transform: rotateX(85deg) translateZ(-50px);
}
.box2{
background-color: green;
transform: rotateX(80deg) ;
}
.box3{
background-color: red;
transform: rotateX(85deg) translateZ(50px);
}
</style>
</head>
<body>
<div class="box">
<div class="box1"></div>
<div class="box2"></div>
<div class="box3"></div>
</div>
</body>
</html>
1回答
好帮手慕久久
2022-03-29
同学你好,代码正确,很棒,祝学习愉快!
相似问题