老师好,请检查2-14练习,谢谢
来源:2-14 编程练习
慕桂英1122475
2023-03-06 16:55:06
<!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>
#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-property: transform ,border-radius,background-color;
transition-duration: .5s;
transition-timing-function: ease;
/*添加代码*/
}
#myTest:hover{
border-radius: 50%;
background-color: green;
transform: scale(2);
}
</style>
</head>
<body>
<div id="myTest"> duang! </div>
</body>
</html>1回答
好帮手慕慕子
2023-03-06
同学你好,代码实现是正确的,非常棒!!!祝学习愉快~
相似问题
回答 1
回答 1
回答 1
回答 1
回答 1