在网站建设中我们想让关键字标签,为自动标签,刷新一次变一次,下面北京网站建设公司来为你介绍在dede中实现的方法
优点:
1、无需修改任何源文件
2、 CSS+JS文件控制,简单更轻易!
3、 为所欲为,想变多少颜色就变多少颜色。
网页部分的代码如下:
CSS部分的代码如下:
.tag1 { color:#339900;font-weight:bold;}
.tag2 { color:#e65730;}
.tag3 { color:#00b9da;}
.tag4 { color:#FE3981;font-weight:bold;font-size:14px;}
使用说明:
1、
此彩色关键字代码中有4种颜色的变化,假如想增加更多颜色变化,
只需要修改var num=4;和css部分增加.tag
例如:var num=5; css里增加.tag5{ color:#00b9da;} ,当然,自己也可以修改相应css,改变字体的颜色,大小,字体...等等,自由发挥吧!
你学会了吗
This color key code has four kinds of color change, if you want to add more color changes,
Only need to modify var num = 4; and css part of the increase. Tag
For example: var num = 5; css li increase. Tag5 {color: # 00b9da;}, of course, they would be able to modify the css, change the font color, size, font ... and so on, free to play it!
Copyright © 2010-2021 北京瑞恒天龙科技有限公司 All Rights Reserved | 北京网站建设知名服务商 | 北京网站制作 | 京ICP备11004170号-1 京公网安备110107000463号
地址:北京市海淀区永定路长银大厦B座 非工作时间:15810379666 服务热线:010-89941606 座机:010-89941606 转801/802/803/804 版权所有 盗版必究!