请老师帮忙检查一下代码,谢谢

来源:2-14 编程练习

廖可爱bongbong

2021-05-14 11:25:44

<!Doctype html>

<html lang="en">

<head>

<meta charset="UTF-8">

<title>空间移动</title>

<style>

    * {

        margin0;

        padding0;

    }


    .box {

        width200px;

        height200px;

        margin200px auto;

        perspective300px;

        position: relative;

    }


    .box p {

        position: absolute;

        left0;

        top0;

        width200px;

        height200px;

    }


    /* 补充代码 */

    .box .one{

        background-color:#FF6A6A;

        transform:rotateX(65deg) translateZ(88px);

    }

    .box .two{

        background-color:#99FF99;

        transform:rotateX(81deg);

    }

    .box .three{

        background-color:#6666FF;

        transform:rotateX(102deg) translateZ(-102px);

    }

</style>

</head>

<body>

<div class="box">

    <p class="one"></p>

    <p class="two"></p>

    <p class="three"></p>

</div>

</body>

</html>


写回答

1回答

好帮手慕然然

2021-05-14

同学你好,代码实现很正确,继续加油,祝学习愉快!

0

0 学习 · 15276 问题

查看课程