老師 我在chrome瀏覽器上沒反應,代碼哪裡有問題呢?
<!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;
-webkit-transition: transform 2s ease-in-out .5s;
transition: transform 2s ease-in-out .5s;
}
/*此处写代码*/
div:hover{
transform: rotate(360deg) scale(2);
-webkit-transition: transform 2s ease-in-out .5s;
transition: transform 2s ease-in-out .5s;
}
</style>
</head>
<body>
<div>www.imooc.com</div>
</body>
</html>11
收起
正在回答
2回答
同学你好,可以自己发现问题棒棒哒。另,代码效果正确,无需优化了。祝学习愉快~
weixin_慕雪0272820
2020-06-22 18:19:26
老師 不好意思 是我開錯檔案 問題已解決能動了
幫忙看下哪裡代碼哪裡可以改進
相似问题
登录后可查看更多问答,登录/注册
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星