请老师检查

来源:2-7 编程练习

慕UI4313976

2021-03-07 10:44:01

<!DOCTYPE html>
<html lang="en">
<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;
/*此处写代码*/
transform: rotate(0deg) scale(1);
color:black;
transition: transform 3s ease-in-out 0s,color 3s ease-in-out 0s;
}
/*此处写代码*/
div:hover{
transform:rotate(360deg) scale(2);
color: red;
}
</style>
</head>
<body>
<div>www.imooc.com</div>
</body>
</html>


写回答

1回答

樱桃小胖子

2021-03-07

同学你好,代码实现的是可以的,继续加油。

祝学习愉快!

0

0 学习 · 15276 问题

查看课程