请问哪里不对?
来源:2-7 编程练习
神知
2020-11-30 13:23:57
# 具体遇到的问题
# 报错信息的截图
# 相关课程内容截图
# 尝试过的解决思路和结果
# 粘贴全部相关代码,切记添加代码注释(请勿截图)
在这里输入代码,可通过选择【代码语言】突出显示
<!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;
/*此处写代码*/
transform:rotate(0deg)
transition:all 1s linear 0s;
}
/*此处写代码*/
div:hover{
transform:rotate(360deg) scale(1);
height:100px;
width:300px;
line-height:100px;
font-size:18px;
}
</style>
</head>
<body>
<div>www.imooc.com</div>
</body>
</html>
1回答
好帮手慕鹤
2020-11-30
同学你好,效果没有实现的原因是:在css中丢失了分号结尾,参考下图修改:
祝学习愉快!
相似问题