400-809-6709
RH98 · 最新动态

北京网站建设-彩色tags标签,关键字代码,tag标签刷新一次变一次,标签云。

来源:瑞恒网络 浏览:
在网站建设中我们想让关键字标签,为自动标签,刷新一次变一次,下面北京网站建设公司来为你介绍在dede中实现的方法

在网站建设中我们想让关键字标签,为自动标签,刷新一次变一次,下面北京网站建设公司来为你介绍在dede中实现的方法

优点:

1、无需修改任何源文件

2、 CSS+JS文件控制,简单更轻易!

3、 为所欲为,想变多少颜色就变多少颜色。


网页部分的代码如下:

  

    {dede:loop table='dede_search_keywords' sort='keyword' row='40' if=''}
     [field:keyword/]
      {/dede:loop} 


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!

 

← 网站建设中常用到图片左右滚动的效果不间断,怎样网页左右滚动效果不间断?
返回动态列表

准备好重塑网站让生意找上门了吗?

免费提供出海网站可行性评估与 AI 排名和 SEO 诊断报告