麻烦老师查看作业,谢谢。
来源:2-20 编程练习
DanielDu87
2022-02-02 13:18:06
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>2-4</title> <style> div { font-family: 'Microsoft Yahei', serif; font-size: 60px; font-weight: bold; line-height: 600px; position: absolute; top: -1000px; right: 0; left: 0; width: 800px; height: 600px; margin: auto; text-align: center; border: 5px solid #000000; border-radius: 50%; animation-name: disp; animation-duration: 1s; /*此处写代码*/ animation-fill-mode: forwards; } @keyframes disp { from { top: -1000px; } to { top: 100px; } } </style> </head> <body> <div>大家好,欢迎来到慕课网!</div> </body> </html>
1回答
好帮手慕星星
2022-02-05
同学你好,代码中缺少动画延迟,需要2s后飞下来。代码完善如下:
祝学习愉快!
相似问题