X  
登录

暂时未开放注册

忘记密码?
登陆
X  
本站已关闭注册功能
统计
  • 建站日期:2021-03-10
  • 文章总数:201 篇
  • 评论总数:7 条
  • 分类总数:21 个
  • 最后更新:9月26日
文章 网站技术

缤纷彩色文字广告代码,文字广告代码美化版

趣6网
首页 网站技术 正文

缤纷彩色文字广告代码,文字广告代码美化版,给网站添加文字广告教程

CSS部分:

<style type="text/css">
    *{margin: 0;}
    body{padding: 50px 100px;box-sizing: border-box;}
    .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="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
    </div>

代码如下:

<!--一行显示8个文字广告,文字内容不限制,超出会隐藏 -->
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>广告代码美化版</title>
<style type="text/css">
    *{margin: 0;}
    body{padding: 50px 100px;box-sizing: border-box;}
    .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>
</head>
<body>
    <div class="tp-ad-text1">
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
        <a href="https://qu66.top/" title="趣6网" target="_blank">趣6网</a>
    </div>
</body>
</html>

版权说明
文章采用: 《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》许可协议授权。
版权声明:未标注转载均为本站原创,转载时请以链接形式注明文章出处。如有侵权、不妥之处,请联系站长删除。敬请谅解!

-- 展开阅读全文 --
安卓百度地图关怀版v1.0.5.6
« 上一篇
音视频处理Quick Cut v1.8.0 便捷版
下一篇 »
为了防止灌水评论,登录后即可评论!
注册登录

HI ! 请登录
注册会员,享受下载全站资源特权。
登陆
社交账号登录

热门文章

标签