麻烦老师检查一下,谢谢
来源:2-14 编程练习
转行学习中_阶段一
2022-10-21 16:10:56
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
<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{
/*添加代码*/
transform:scale(2);
border-radius:50%;
background-color:green;
}
</style>
</head>
<body>
<div id="myTest"> duang! </div>
</body>
</html>1回答
好帮手慕久久
2022-10-21
同学你好,代码正确,很棒,祝学习愉快!
相似问题