laoshi kanakn

laoshi kanakn

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>2-9</title>
    <style type="text/css">
        div {
            font-family: Arial;
            font-size: 72px;
            font-weight: bold;
            position: fixed;
            right: 0;
            left: 0;
            bottom:40px;
            width: 30px;
            height: 30px;
            margin: auto;
            transform: rotate(90deg);
            /*此处写代码*/
            animation:down 1s ease-in-out 0.5s infinite normal forwards running;
        }
         
        @keyframes down {
            from {bottom:40px;}
            to   {bottom:15px;}
            from {bottom:15px;}
            to   {bottom:20px;}
            from {bottom:20px;}
            to   {bottom:15px;}
        }
    </style>
</head>
<body>
    <div>&gt;</div>
</body>
</html>


正在回答

登陆购买课程后可参与讨论,去登陆

1回答

同学你好, 代码效果实现了, 不过设置动画帧里面的语法不符合规范, 建议: 可以使员工百分比设置具体动画帧的效果哦, 参考下图写法

http://img1.sycdn.imooc.com//climg/5d8b020d097412d905750762.jpg

如果帮助到了你, 欢迎采纳!

祝学习愉快~~~~

问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星

相似问题

laoshi
laoshi
laoshi 老师
duime laoshi

登录后可查看更多问答,登录/注册

请稍等 ...
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师
插入代码