挂件头衔✨️靓标库🧚‍♂️名人堂🦄宝可梦🍎水果机🥊猜拳🏧黑市🏧银行💹抽奖
   🎁
返回列表 发布新帖
查看: 141|回复: 0

[代码技巧] 子比主题 – 缤纷彩色文字广告位代码

[复制链接]
社区贡献

330

主题

204

回帖

2万

积分

等级头衔
Icon组别 : 管理员
Icon等级 :

积分成就
   钻石 : 293 颗
   贡献 : 40810 点
   金币 : 24 枚
Icon在线时间 : 1669 小时
Icon注册时间 : 2024-11-22
Icon最后登录 : 2026-6-10

荣誉勋章

连续签到LV.1累计签到LV.3任务·年会员幸运抽奖·皇幸运抽奖·尊幸运抽奖·豪起源之星摩羯座推广LV.2钻石LV.1注册一周年

总共送礼:1 个    总共收礼:0 个

实力·绝代收藏家

飞流名人堂成员 1 FLLTCN 实名认证 特邀大神 诚信商家 信誉担保 精华作者+ 官方团队 vip vip-year 发表于 2025-10-6 20:38:13 | 查看全部 |阅读模式 浙江金华

交易无需等待,成交就是现在,全面资源整合网络大咖云集,让你轻松玩转互联网!

您需要 登录 才可以下载或查看,没有账号?立即注册

×
给网站添加一个文字广告的菜单分类引导,就在网上看到这种虚线边框划过变色文字广告样式,感觉还是很不错的,所有网站基本上都可以用,因为这就两个代码,一个是HTML和CSS,喜欢的自行部署!
提前说一下,这个是子比主题的广告教程,其他站的直接用下面的HTML和CSS代码实现就可以!
HTML代码
将下面的代码放到:WP后台–>>外观–>>小工具–>>自定义HTML代码即可!
  1. <div class="tp-ad-text1">
  2.     <a href="https://ck178.cn/" rel="external nofollow" title="腾飞博客·tfbkw.com" target="_blank">腾飞博客·tfbkw.com</a>
  3.     <a href="https://ck178.cn/" rel="external nofollow" title="腾飞博客·tfbkw.com" target="_blank">腾飞博客·tfbkw.com</a>
  4.     <a href="https://ck178.cn/" rel="external nofollow" title="腾飞博客·tfbkw.com" target="_blank">腾飞博客·tfbkw.com</a>
  5.     <a href="https://ck178.cn/" rel="external nofollow" title="腾飞博客·tfbkw.com" target="_blank">腾飞博客·tfbkw.com</a>
  6.     <a href="https://ck178.cn/" rel="external nofollow" title="腾飞博客·tfbkw.com" target="_blank">腾飞博客·tfbkw.com</a>
  7.     <a href="https://ck178.cn/" rel="external nofollow" title="腾飞博客·tfbkw.com" target="_blank">腾飞博客·tfbkw.com</a>
  8.     <a href="https://ck178.cn/" rel="external nofollow" title="腾飞博客·tfbkw.com" target="_blank">腾飞博客·tfbkw.com</a>
  9.     <a href="https://ck178.cn/" rel="external nofollow" title="腾飞博客·tfbkw.com" target="_blank">腾飞博客·tfbkw.com</a>
  10. </div>
复制代码
CSS代码

将下面的代码放到:子比主题–>>自定义CSS样式即可!
  1. .tp-ad-text1 {width:100%;padding-top:6px;box-sizing:border-box;overflow: hidden;}
  2.   .tp-ad-text1 a {color:#7fba00;font-size:14px;line-height:38px;text-align:center;border:1px dashed rgba(0,0,0,.2);padding:0 3px;box-sizing:border-box;float:left;width:24%;height:38px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0 0.5% 6px;text-decoration:none;transition:all .6s;}
  3.   .tp-ad-text1 a:hover {font-weight: bold;color:#fff!important;background:#7fba00;transition: all .6s;}
  4.   .tp-ad-text1 a:nth-child(2n) {color:#f74e1e;}
  5.   .tp-ad-text1 a:nth-child(2n):hover {background:#f74e1e;border-color: #f74e1e;}
  6.   .tp-ad-text1 a:nth-child(3n) {color:#00a4ef;}
  7.   .tp-ad-text1 a:nth-child(3n):hover {background:#00a4ef;border-color: #00a4ef;}
  8.   .tp-ad-text1 a:nth-child(4n) {color:#009688;}
  9.   .tp-ad-text1 a:nth-child(4n):hover {background:#009688;border-color: #009688;}
  10.   .tp-ad-text1 a:nth-child(5n) {color:#FFEB3B;}
  11.   .tp-ad-text1 a:nth-child(5n):hover {background:#FFEB3B;border-color: #FFEB3B;}
  12.   .tp-ad-text1 a:nth-child(6n) {color:#ffb900;}
  13.   .tp-ad-text1 a:nth-child(6n):hover {background:#ffb900;border-color: #ffb900;}
  14.   .tp-ad-text1 a:nth-child(7n) {color:#0fc317;}
  15.   .tp-ad-text1 a:nth-child(7n):hover {background:#0fc317;border-color: #0fc317;}
  16.   .tp-ad-text1 a:nth-child(8n) {color:#E91E63;}
  17.   .tp-ad-text1 a:nth-child(8n):hover {background:#E91E63;border-color: #E91E63;}
  18.   .tp-ad-text1 a:nth-child(9n) {color:#fba78f;}
  19.   .tp-ad-text1 a:nth-child(9n):hover {background:#fba78f;border-color: #fba78f;}
  20.   .tp-ad-text1 a:nth-child(10n) {color:#13cf8f;}
  21.   .tp-ad-text1 a:nth-child(10n):hover {background:#13cf8f;border-color: #13cf8f;}
  22.   .tp-ad-text1 a:nth-child(11n) {color:#f74e1e;}
  23.   .tp-ad-text1 a:nth-child(11n):hover {background:#f74e1e;border-color: #f74e1e;}
  24.   .tp-ad-text1 a:nth-child(12n) {color:#ffb900;}
  25.   .tp-ad-text1 a:nth-child(12n):hover {background:#ffb900;border-color: #ffb900;}
  26.   .tp-ad-text1 a:nth-child(13n) {color:#fba78f;}
  27.   .tp-ad-text1 a:nth-child(13n):hover {background:#fba78f;border-color: #fba78f;}
  28.   .tp-ad-text1 a:nth-child(14n) {color:#f74e1e;}
  29.   .tp-ad-text1 a:nth-child(14n):hover {background:#f74e1e;border-color: #f74e1e;}
  30.   .tp-ad-text1 a:nth-child(15n) {color:#7fba00;}
  31.   .tp-ad-text1 a:nth-child(15n):hover {background:#7fba00;border-color: #7fba00;}
  32.   .tp-ad-text1 a:nth-child(16n) {color:#0fc317;}
  33.   .tp-ad-text1 a:nth-child(16n):hover {background:#0fc317;border-color: #0fc317;}
  34.   .tp-ad-text1 a:nth-child(17n) {color:#0517c2;}
  35.   .tp-ad-text1 a:nth-child(17n):hover {background:#0517c2;border-color: #0517c2;}
  36.   .tp-ad-text1 a:nth-child(18n) {color:#13cf8f;}
  37.   .tp-ad-text1 a:nth-child(18n):hover {background:#13cf8f;border-color: #13cf8f;}
  38.   .tp-ad-text1 a:nth-child(19n) {color:#ffb900;}
  39.   .tp-ad-text1 a:nth-child(19n):hover {background:#ffb900;border-color: #ffb900;}
  40.   .tp-ad-text1 a:nth-child(20n) {color:#f74e1e;}
  41.   .tp-ad-text1 a:nth-child(20n):hover {background:#f74e1e;border-color: #f74e1e;}
  42.   @media screen and (max-width: 1400px){
  43.     .tp-ad-text1 a{
  44.       width: 24%;
  45.     }
  46.   }
复制代码


本帖被以下淘专辑推荐:

路虽远,行则将至;事虽难,做则必成。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

飞流广播+ 发布

系统消息:飞流安卓客户端APP已上线,请在QQ群(123129)群文件内获取下载。
02-21 02:22
01-24 12:40
站内通告

📢 六月份后均不在线,请悉知

提供资源交易、信息共享、靓号交流、技术变现、学习问答、兴趣娱乐等全面服务。

1.丰富功能系统,扩展社区特色玩法,打造最好的互联网聚集圈子。

2.准确信息真实交易,安全快捷又方便,让虚拟交易面对面。

3. 天上不会掉馅饼,话术骗术迷人心,切勿脱离平台线下交易,被骗与平台无关!

4. 欺诈骗钱,违规违法将视情受到警告&禁言&封号甚至检举至👮🏻‍♀️处理!

官方Q群:1003810038钉推群:BAYR2383 站长QQ:3388700000

飞流论坛(FLLT.CN),一个专注于资源信息发布、虚拟网络交易、技术学习与娱乐社交的交流平台。
  • 钉钉新帖推送群
  • 官方交流QQ群
  • 站长唯一微信号

💥客户端|🧿小黑屋|📴手机页|飞流网 |网站地图

GMT+8, 2026-6-10 07:42 , Processed in 0.078814 second(s), 83 queries, MemCached On , Gzip On.

飞流论坛 HanAnalytics icp

Copyright © 2024-2026 飞流网 版权所有 All Rights Reserved. X3.5

快速回复 返回顶部 返回列表