请老师批改 2-14
来源:2-14 编程练习
Cynthia4660559
2021-11-26 18:12:21
<!Doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>空间移动</title>
<style>
* {
margin: 0;
padding: 0;
}
.box {
width: 200px;
height: 200px;
margin: 200px auto;
perspective: 300px;
position: relative;
}
.box p {
position: absolute;
left: 0;
top: 0;
width: 200px;
height: 200px;
}
/* 补充代码 */
.box p:first-child{
background-color: rgba(194, 57, 57, 0.514);
transform: rotateX(80deg);
}
.box p:nth-child(2){
background-color: rgba(57, 194, 75, 0.514);
transform: rotateX(90deg) translateZ(-50px);
}
.box p:nth-child(3){
background-color: rgba(57, 105, 194, 0.514);
transform: rotateX(100deg) translateZ(-100px);
}
</style>
</head>
<body>
<div class="box">
<p></p>
<p></p>
<p></p>
</div>
</body>
</html>1回答
好帮手慕久久
2021-11-26
同学你好,效果写的不错,很棒,祝学习愉快!
相似问题