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

来源:2-18 编程练习

廖可爱bongbong

2021-05-14 22:29:37

<!DOCTYPE html>

<html>

<head>

    <meta charset="UTF-8">

    <title>2-9</title>

    <style type="text/css">

        div {

            font-family: Arial;

            font-size: 72px;

            font-weight: bold;

            position: fixed;

            right: 0;

            left: 0;

            width: 30px;

            height: 30px;

            margin: auto;

            /*此处写代码*/

            bottom: 50px;

            animation: r 1s linear 0s infinite;

            }

            

            @keyframes r{

                0%{

                    transform:rotate(90deg) translateX(20px);

                }

                50%{

                    transform:rotate(90deg) translateX(15px);

                }

                100%{

                    transform:rotate(90deg) translateX(30px);

                }

            }

        

    </style>

</head>

<body>

    <div>&gt;</div>

</body>

</html>


写回答

1回答

好帮手慕久久

2021-05-15

同学你好,代码正确,很棒,祝学习愉快!

0

0 学习 · 15276 问题

查看课程