请老师检查作业

来源:2-20 编程练习

鱼档卖鱼

2021-12-14 14:41:36

<!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>

        div {

            font-family: 'Microsoft Yahei';

            font-size: 60px;

            font-weight: bold;

            line-height: 600px;

            position: absolute;

            top: -1000px;

            right: 0;

            left: 0;

            width: 800px;

            height: 600px;

            margin: auto;

            text-align: center;

            border: 5px solid #000;

            border-radius: 50%;

           

            /*此处写代码*/

            animation: disp 2s linear 2s infinite;

        }


        @keyframes disp {

            from {

                top: -1000px;

            }


            to {

                top: 0px;

            }

    </style>

</head>


<body>

    <div>大家好,欢迎来到慕课网!</div>

</body>


</html>


写回答

1回答

好帮手慕小李

2021-12-14

同学你好,代码能实现效果很棒,继续努力。

祝学习愉快。

0

0 学习 · 17877 问题

查看课程