2-7 过渡练习

来源:2-7 编程练习

慕移动4506339

2021-11-24 22:09:05

<!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{
            font-size:28px;
            line-height:100px;
            width:400px;
            height:100px;
            transform:rotate(360deg);
        }
        /*此处写代码*/
       
    </style>
</head>
<body>
    <div>www.imooc.com</div>
</body>
</html>

老师 麻烦检查下代码是否有误

写回答

1回答

好帮手慕然然

2021-11-25

同学你好,代码实现没问题,关于实现放大一倍的效果,老师有个更简单的实现方式,同学可以参考一下,如图

https://img.mukewang.com/climg/619eea0c095fb41608100211.jpg

祝学习愉快!

0

0 学习 · 15276 问题

查看课程