老师请检查,谢谢
来源:2-14 编程练习
 
			慕的地7233660
2022-03-27 16:41:39
相关代码:
 <style>
        #myTest{
            width: 100px;
            height: 100px;
            text-align: center;
            line-height: 100px;
            background-color: #f43838;
            margin: auto;
            margin-top: 100px;
            color: #FFF;
            cursor: pointer;
            font-size: 20px;
            font-weight: bold;
        /*添加代码*/
             transition: all 0.5s linear 0s;
        }
        #myTest:hover{
             border-radius: 50%;
            background-color: green;
          transform: scale(2);
        }
        }
    </style>
</head>
<body>
    <div id="myTest">  duang! </div>
</body>1回答
 
					好帮手慕慕子
2022-03-27
同学你好,效果实现是正确的,有个细节需要注意下,代码中多了一个}, 建议去掉,让代码更加规范

祝学习愉快~