麻烦老师查看作业

来源:2-7 编程练习

慕沐8221744

2022-02-23 18:12:57

<!DOCTYPE html>

<html>

<head>

    <meta charset="UTF-8">

    <title>3-1作业</title>

    <style>

        div {

            font-size: 14px;

            font-weight: bold;

            line-height: 50px;

            position: fixed;

            top: 0;

            right: 0;

            bottom: 0;

            left: 0;

            width: 200px;

            height: 50px;

            margin: auto;

            cursor: pointer;

            text-align: center;

            background: #abcdef;

            /*此处写代码*/

           transition: all 1s linear 0s;

        }

        /*此处写代码*/

       div:hover{

            transform: rotate(0deg) rotate(360deg) scale(3);

        }  

    </style>

</head>

<body>

    <div>www.imooc.com</div>

</body>

</html>


写回答

1回答

好帮手慕久久

2022-02-23

同学你好,效果正确,代码可以优化一下:

https://img.mukewang.com/climg/621608fb09fe360709810297.jpg

祝学习愉快!

0

0 学习 · 17877 问题

查看课程