麻烦老师看下 是否有误

来源:2-14 编程练习

dww1

2021-10-05 17:05:25

 <style>
*{
margin: 0;
padding: 0;
}
.box{
width: 200px;
height: 200px;
margin: 100px auto;
perspective: 300px;
position: relative;
}
.box p{
width: 200px;
height: 200px;
position: absolute;
top: 0;
left: 0;
}
.box p:nth-child(1){
background-color: red;
transform: rotateX(-90deg) translateZ(30px);
}
.box p:nth-child(2){
background-color: greenyellow;
transform: rotateX(-80deg) translateZ(87px);
}
.box p:nth-child(3){
background-color: blue;
transform: rotateX(-67deg) translateZ(137px);
}
</style>
​<div class="box">
<p></p>
<p></p>
<p></p>
</div>


写回答

1回答

好帮手慕星星

2021-10-06

同学你好,代码实现效果可以,继续加油,祝学习愉快!

0

0 学习 · 15276 问题

查看课程