请老师检查一下谢谢
来源:2-7 编程练习
一只少年
2021-10-22 10:49:55
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;
/*此处写代码*/
transition:all 1s linear 0s;
}
/*此处写代码*/
div:hover{
width:400px;
height:100px;
line-height:100px;
font-size:20px;
transform:rotate(360deg);
}
1回答
好帮手慕星星
2021-10-22
同学你好,放大一倍,字体应该是28px
另外可以简单一些,不设置宽高,行高以及字体,用scale缩放,参考:
祝学习愉快!
相似问题