老师帮忙检查一下

来源:2-14 编程练习

摩苏尔

2020-11-05 12:58:21

# 具体遇到的问题

# 报错信息的截图

# 相关课程内容截图

# 尝试过的解决思路和结果

# 粘贴全部相关代码,切记添加代码注释(请勿截图)

在这里输入代码,可通过选择【代码语言】突出显示

<!Doctype html>

<html>

<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:red;

        transform:rotateX(83deg);

    }

    .box p:nth-child(2){

        background-color:green;

        transform:rotateX(93deg) translateZ(-50px);

    }

    .box p:last-child{

        background-color:blue;

        transform:rotateX(100deg) translateZ(-90px);

    }

</style>

</head>

<body>

<div class="box">

    <p></p>

    <p></p>

    <p></p>

</div>

</body>

</html>


写回答

1回答

好帮手慕慕子

2020-11-05

同学你好,代码实现是正确的,继续加油,祝学习愉快~

0

0 学习 · 15276 问题

查看课程