2-14 编程练习
来源:2-14 编程练习
慕移动4506339
2022-10-23 19:13:55
老师,请检查
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <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:all 0.5s linear 0s; } #myTest:hover{ border-radius:50%; transform:scale(2); background-color:green; } </style> </head> <body> <div id="myTest"> duang! </div> </body> </html>
1回答
imooc_慕慕
2022-10-24
同学你好,代码效果正确,很棒,祝学习愉快~