麻烦老师查看作业,谢谢。
来源:2-14 编程练习
DanielDu87
2021-12-28 18:58:00
<!Doctype html> <html> <head> <meta charset="UTF-8"> <title>空间移动</title> <style> * { margin: 0; padding: 0; } .box { height: 200px; margin: 200px auto; perspective: 300px; position: relative; width: 200px; } .box p { height: 200px; left: 0; position: absolute; top: 0; width: 200px; } /* 补充代码 */ .box p:nth-child(1) { background-color: #ff7f7f; transform: rotateX(68deg) translateZ(90px); } .box p:nth-child(2) { background-color: #7fff7f; transform: rotateX(73deg) translateZ(60px); } .box p:nth-child(3) { background-color: #7f7fff; transform: rotateX(79deg) translateZ(30px); } </style> </head> <body> <div class="box"> <p></p> <p></p> <p></p> </div> </body> </html>
1回答
好帮手慕然然
2021-12-29
同学你好,代码实现很棒,继续加油,祝学习愉快!
相似问题