css实现div背景色闪烁效果


当前第2页 返回上一页

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

<!DOCTYPE html>

<html>

<head>

<style>

@keyframes fade {

    from {

        opacity: 1.0;

    }

    50% {

        opacity: 0.0;

    }

    to {

        opacity: 1.0;

    }

}

 

.headerBox {

width:100px;

    background: #ff0;

    padding: 10px;

    font-size: 15px;

    height: 100px;

    animation: fade 600ms infinite;

}

</style>

</head>

<body>

<div>&nbsp;</div>

</body>

</html>

推荐教程:CSS教程

以上就是css实现div背景色闪烁效果的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

html里padding是什么意思

聊聊css中box-align和box-pack属性的用法

css ul怎么去掉点

css中怎么进行注释

css不生效是什么原因

两分钟带你了解在css中三种使图片居中的方法

css如何指定样式表使用的字符编码

css中width有啥属性?

css中px、em、rem的区别是什么?

怎么给css文件改名

更多相关阅读请进入《css》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...