一款自适应网站纯文字广告位的通用HTML代码

2025-05-20 76 0

代码介绍:

一款非常漂亮的HTML自适应广告位

界面预览:

3385379615

源代码:

<style type="text/css">
  .tp-ad-text1 {width:100%;padding-top:6px;box-sizing:border-box;overflow: hidden;background: rgba(255,255,255,.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:11.5%;height:38px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0 0.5% 6px;text-decoration:none;transition:all .6s;}
  .tp-ad-text1 a:hover {font-weight: bold;color:#fff!important;background:#7fba00;transition: all .6s;}
  .tp-ad-text1 a:nth-child(2n) {color:#f74e1e;}
  .tp-ad-text1 a:nth-child(2n):hover {background:#f74e1e;border-color: #f74e1e;}
  .tp-ad-text1 a:nth-child(3n) {color:#00a4ef;}
  .tp-ad-text1 a:nth-child(3n):hover {background:#00a4ef;border-color: #00a4ef;}
  .tp-ad-text1 a:nth-child(4n) {color:#0517c2;}
  .tp-ad-text1 a:nth-child(4n):hover {background:#0517c2;border-color: #0517c2;}
  .tp-ad-text1 a:nth-child(5n) {color:#601165;}
  .tp-ad-text1 a:nth-child(5n):hover {background:#601165;border-color: #601165;}
  .tp-ad-text1 a:nth-child(6n) {color:#ffb900;}
  .tp-ad-text1 a:nth-child(6n):hover {background:#ffb900;border-color: #ffb900;}
  .tp-ad-text1 a:nth-child(7n) {color:#0fc317;}
  .tp-ad-text1 a:nth-child(7n):hover {background:#0fc317;border-color: #0fc317;}
  .tp-ad-text1 a:nth-child(8n) {color:#601165;}
  .tp-ad-text1 a:nth-child(8n):hover {background:#601165;border-color: #601165;}
  .tp-ad-text1 a:nth-child(9n) {color:#fba78f;}
  .tp-ad-text1 a:nth-child(9n):hover {background:#fba78f;border-color: #fba78f;}
  .tp-ad-text1 a:nth-child(10n) {color:#13cf8f;}
  .tp-ad-text1 a:nth-child(10n):hover {background:#13cf8f;border-color: #13cf8f;}
  .tp-ad-text1 a:nth-child(11n) {color:#f74e1e;}
  .tp-ad-text1 a:nth-child(11n):hover {background:#f74e1e;border-color: #f74e1e;}
  .tp-ad-text1 a:nth-child(12n) {color:#ffb900;}
  .tp-ad-text1 a:nth-child(12n):hover {background:#ffb900;border-color: #ffb900;}
  .tp-ad-text1 a:nth-child(13n) {color:#fba78f;}
  .tp-ad-text1 a:nth-child(13n):hover {background:#fba78f;border-color: #fba78f;}
  .tp-ad-text1 a:nth-child(14n) {color:#f74e1e;}
  .tp-ad-text1 a:nth-child(14n):hover {background:#f74e1e;border-color: #f74e1e;}
  .tp-ad-text1 a:nth-child(15n) {color:#7fba00;}
  .tp-ad-text1 a:nth-child(15n):hover {background:#7fba00;border-color: #7fba00;}
  .tp-ad-text1 a:nth-child(16n) {color:#0fc317;}
  .tp-ad-text1 a:nth-child(16n):hover {background:#0fc317;border-color: #0fc317;}
  .tp-ad-text1 a:nth-child(17n) {color:#0517c2;}
  .tp-ad-text1 a:nth-child(17n):hover {background:#0517c2;border-color: #0517c2;}
  .tp-ad-text1 a:nth-child(18n) {color:#13cf8f;}
  .tp-ad-text1 a:nth-child(18n):hover {background:#13cf8f;border-color: #13cf8f;}
  .tp-ad-text1 a:nth-child(19n) {color:#ffb900;}
  .tp-ad-text1 a:nth-child(19n):hover {background:#ffb900;border-color: #ffb900;}
  .tp-ad-text1 a:nth-child(20n) {color:#f74e1e;}
  .tp-ad-text1 a:nth-child(20n):hover {background:#f74e1e;border-color: #f74e1e;}
  @media screen and (max-width: 1198px){
    .tp-ad-text1 a{
      width: 24%;
    }
  }
</style>
 <div class="tp-ad-text1">
                <a href="http://ygz.ink" title="宗宗酱博客" target="_blank">宗宗酱博客</a>
                <a href="http://ygz.ink" title="<a href="http://ygz.ink/" title="更多关于 广告位" target="_blank">广告位</a>
                <a href="http://ygz.ink" title="广告位/10/月" target="_blank">广告位/10/月</a>
                <a href="http://ygz.ink" title="广告位/10/月" target="_blank">广告位/10/月</a>
                <a href="http://ygz.ink" title="广告位/10/月" target="_blank">广告位/10/月</a>
                <a href="http://ygz.ink" title="广告位/10/月" target="_blank">广告位/10/月</a>
                <a href="http://ygz.ink" title="广告位/10/月" target="_blank">广告位/10/月</a>
                <a href="http://ygz.ink" title="广告位/10/月" target="_blank">广告位/10/月</a>
                <a href="http://ygz.ink" title="广告位/10/月" target="_blank">广告位/10/月</a>
                <a href="http://ygz.ink" title="广告位/10/月" target="_blank" title="同款网站搭建" target="_blank">同款网站搭建</a>
                <a href="http://ygz.ink" title="广告位/10/月" target="_blank">广告位/10/月</a>
                <a href="http://ygz.ink" title="广告位/10/月" target="_blank">广告位/10/月</a>
                <a href="http://ygz.ink" title="广告位/10/月" target="_blank">广告位/10/月</a>
                <a href="http://ygz.ink" title="广告位/10/月" target="_blank">广告位/10/月</a>
                <a href="http://ygz.ink" title="广告位/10/月" target="_blank">广告位/10/月</a>
                <a href="http://ygz.ink" title="广告位/10/月" target="_blank">广告位/10/月</a>
                <a href="http://ygz.ink" title="广告位/10/月" target="_blank">广告位/10/月</a>
                <a href="http://ygz.ink" title="同款网站搭建" target="_blank">同款网站搭建</a>
                <a href="http://ygz.ink" title="广告位/10/月" target="_blank">广告位/10/月</a>
                <a href="http://ygz.ink" title="广告位/10/月" target="_blank">广告位/10/月</a>
                <a href="http://ygz.ink" title="广告位/10/月" target="_blank">广告位/10/月</a>
                <a href="http://ygz.ink" title="广告位/10/月" target="_blank">广告位/10/月</a>
                <a href="http://ygz.ink" title="广告位/10/月" target="_blank">广告位/10/月</a>
                <a href="http://ygz.ink" title="广告位/10/月" target="_blank">广告位/10/月</a>
            </div>

免责声明
本站https://ygz.ink文章https://ygz.ink/archives/2172.html中提供的一切软件、教程和内容信息仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则一切后果请用户自负。本站部分信息来自博主网络收集整理,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑或手机中彻底删除上述内容。如果您喜欢该程序和内容,请支持正版,购买注册,得到更好的正版服务。我们非常重视版权问题,如有侵权请邮件与我们联系处理。敬请谅解!
邮箱:gouweicaosheji@163.com

相关文章

3步搞定Cursor中文汉化!90%程序员不知道的配置秘籍
【C语言大闯关!】第二关|🚀 C语言字母积木大冒险用"ABC+123"拼出会动的电子宠物!🐶✨
【C语言大闯关!】第一关|5块“魔法积木”拼出会说话的机器人🤖✨
【C语言大闯关!】C语言时空冒险从“魔法积木”到“会说话的机器人”的奇妙故事!✨
Python算术运算符学习指南【学生学习版】
目前正在筹集少儿编程赛事项目的题库建设

发布评论

在线客服
我们将24小时内回复。
2025-05-30 11:53:10

您好,有任何疑问请与我们直接联系!

您的工单我们已经收到,我们将会尽快跟您联系!
取消

选择聊天工具:

一款自适应网站纯文字广告位的通用HTML代码