2-14,麻烦老师检查一下!
来源:2-14 编程练习
脑袋瓜瓜嗡嗡的
2022-05-09 20:31:44
<!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 {
width: 200px;
height: 200px;
margin: 200px auto;
perspective: 300px;
position: relative;
perspective:300px;
}
.box p {
position: absolute;
left: 0;
top: 0;
width: 200px;
height: 200px;
}
/* 补充代码 */
p:nth-child(1){
background-color:red;
transform:rotateX(69deg) translateZ(77px);
}
p:nth-child(2){
background-color:green;
transform:rotateX(75deg) translateZ(39px);
}
p:nth-child(3){
background-color:blue;
transform:rotateX(84deg) translateZ(-8px);
}
</style>
</head>
<body>
<div class="box">
<p></p>
<p></p>
<p></p>
</div>
</body>
</html>1回答
好帮手慕久久
2022-05-10
同学你好,代码正确,很棒,祝学习愉快!
相似问题