为什么只消失一次,不能像示例一样重复

来源:2-7 编程练习

慕村7338132

2018-07-22 19:16:59

<!DOCTYPE html>

<html>

<head>

    <meta charset="UTF-8">

    <title>2-2</title>

    <style type="text/css">

        div {

            font-family: 'Microsoft Yahei';

            font-size: 60px;

            font-weight: bold;

            line-height: 600px;

            position: absolute;

            top: 0;

            right: 0;

            bottom: 0;

            left: 0;

            width: 800px;

            height: 600px;

            margin: auto;

            text-align: center;

            border: 5px solid #000;

            border-radius: 50%;

            animation-name:transparent;

            animation-duration:2s;

            }

       @keyframes transparent

            {

                from{opacity:1;}

                to{opacity:0;}

            }

   </style>

</head>

<body>

    <div>大家好,欢迎来到慕课网!</div>

</body>

</html>


写回答

1回答

好帮手慕夭夭

2018-07-23

练习题中图片只是播放结束之后又重新开始播放 , 并不是动画效果哦 . 建议样式如下修改效果更好 :

http://img.mukewang.com/climg/5b553c510001565a04470435.jpg

完善一下吧  ,望采纳 ,祝学习愉快 !

0

0 学习 · 5760 问题

查看课程