好看的网站自适应图片文字广告位HTML代码

图片代码

好看的网站自适应图片文字广告位 HTML 代码

HTML 代码

<div class="ad">
<!-- 图片横幅广告 -->
<a href="https://www.5zyw.com" rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  target="_blank" ><img src="https://y.gtimg.cn/music/photo_new/T053M000003UUUus1HuyfW.gif" width="100%"></a>
<!-- 自适应文字广告 -->
<li><a href="https://www.5zyw.com" rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  target="_blank" style="line-height:60px;height:60px;color:#fff;background:#01AAED;text-align:center;font-size:24px;"> 广告招商 虚位以待 </a></li>
<li> <a href="https://www.5zyw.com" rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"   target="_blank" style="line-height:60px; height:60px ;color:#fff; background:#2F4056; text-align:center; font-size:24px;" > 广告招商 虚位以待 </a></li>
</div>

<div class="txtguanggao">
<a href="https://www.5zyw.com" rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  target="_blank" class="dh"> 超低价文字广告位 </a>
<a href="https://www.5zyw.com" rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  target="_blank" class="dh"> 超低价文字广告位 </a>
<a href="https://www.5zyw.com" rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  target="_blank" class="dh"> 超低价文字广告位 </a>
<a href="https://www.5zyw.com" rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  target="_blank" class="dh"> 超低价文字广告位 </a>
<a href="https://www.5zyw.com" rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  target="_blank" class="dh"> 超低价文字广告位 </a>
<a href="https://www.5zyw.com" rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  target="_blank" class="dh"> 超低价文字广告位 </a>
<a href="https://www.5zyw.com" rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  target="_blank" class="dh"> 超低价文字广告位 </a>
<a href="https://www.5zyw.com" rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  target="_blank" class="dh"> 超低价文字广告位 </a>

</div>
<style>
/** 广告位 **/
.ad{background:#fff;overflow:hidden;clear:both;border-radius: 6px;}
.ad a{margin:5px;display:block;border-radius:3px;}
.ad img{max-width:100%;}
.ad li{float:left;width:50%;list-style:none;}
@media(max-width:999px) {.ad{margin: 0 0 10px 0;}
.ad li{width:100%;}
}
/** 新增文字广告 **/
.txtguanggao{
    width: 100%;
    overflow: hidden;
    display: block;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.05);
}
.txtguanggao a{width: calc((100% - 20px) / 4);
    float: left;
    border-radius: 2px;
    line-height: 35.35px;
    height: 35.35px;
    text-align: center;
    font-size: 14px;
    color: #fff;
    display: inline-block;
    background-color: rgb(255, 153, 159);
    margin: 2.5px;
    
    transition-duration: .3s;
}
.txtguanggao a:nth-child(1) {background-color: #dc3545;}
.txtguanggao a:nth-child(2) {background-color: #007bff;}
.txtguanggao a:nth-child(3) {background-color: #28a745;}
.txtguanggao a:nth-child(4) {background-color: #ffc107;}
.txtguanggao a:nth-child(5) {background-color: #28a745;}
.txtguanggao a:nth-child(6) {background-color: #ffc107;}
a {text-decoration: none;}
.txtguanggao a:nth-child(7) {background-color: #dc3545;}
.txtguanggao a:nth-child(8){background-color: #007bff;}
.txtguanggao a:hover{background:#FF2805;color:#FFF}
@media screen and (max-width: 1000px) {
.txtguanggao a{width: calc((100% - 10px) / 2);
    float: left;
    border-radius: 2px;
    line-height: 35.35px;
    height: 35.35px;
    text-align: center;
    font-size: 14px;
    color: #fff;
    display: inline-block;
    background-color: rgb(255, 153, 159);
    margin: 2.5px;
    transition-duration: .3s;
}
}
  @media screen and (min-width: 1000px) {
    .txtguanggao a{width: calc((100% - 20px) / 4);
    }}
</style>
正文完
 0
吾资源网
版权声明:本站原创文章,由 吾资源网 2024-03-02发表,共计2551字。
转载说明:

1、本站是一个免费且专业提供精品软件、网站源码、PHP源码、高端模板、游戏源码、网站插件、精品教程等站长资源分享的平台,所有资源来源于用户上传和网络,都不包含技术服务请大家谅解!
2、本站所有源码资源(包括源代码、软件、学习资料等)仅供研究学习以及参考等合法使用,请勿用于商业用途以及违法使用,否则后果自负!如本站不慎侵犯您的版权 侵删请致信E-mail:ashw8@qq.com,我们将及时处理,并撤下相关内容!
3、访问本站的用户必须明白,本站对所提供下载的软件和程序代码不拥有任何权利,其版权归该软件和程序代码的合法拥有者所有,请用户在下载使用前必须详细阅读并遵守软件作者的“使用许可协议”,本站仅仅是一个学习交流的平台。如果您喜欢该程序,购买注册,得到更好的正版服务!
4、如遇到加密压缩包,可使用7-ZIP解压,如遇到无法解压的请联系管理员!

评论(没有评论)