精美实用!网站自适应图片文字广告位代码分享
作者:小编日期:2025-04-20浏览:5623分类:只有源码
<div class="ad">
<!--图片横幅广告-->
<a href="https://dsdiss.com" target="_blank" ><img src="https://dsdiss.com/wp-content/uploads/logo-dark%E5%89%AF%E6%9C%AC.png" width="100%"></a>
<!--自适应文字广告-->
<li><a href="https://dsdiss.com" target="_blank" style="line-height:
60px;height:60px;color:#fff;background:#01AAED;text-align:center;font-size
:24px;">广告招商 虚位以待</a></li>
<li> <a href="https://dsdiss.com" 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://dsdiss.com" target="_blank" class="dh">超低价文字广告位</a>
<a href="https://dsdiss.com" target="_blank" class="dh">超低价文字广告位</a>
<a href="https://dsdiss.com" target="_blank" class="dh">超低价文字广告位</a>
<a href="https://dsdiss.com" target="_blank" class="dh">超低价文字广告位</a>
<a href="https://dsdiss.com" target="_blank" class="dh">超低价文字广告位</a>
<a href="https://dsdiss.com" target="_blank" class="dh">超低价文字广告位</a>
<a href="https://dsdiss.com" target="_blank" class="dh">超低价文字广告位</a>
<a href="https://dsdiss.com" 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>
相关文章
- 11-05 千寻运动助手系统源码/全开源/附小程序源码
- 11-05 轻美图纯PHP图库网站源码(内含1000+美图)
- 11-05 大佬写的AI聚合api网关系统源码
- 11-04 我宣布了自己死亡--github生命检测
- 10-28 AI综合站商业分发系统v3.1纯净版发布 附完整安装教程(排版修正版)
- 10-28 聊天分析 + 回复建议 + 找话题:微话助手把微x对话变成“可读题”
- 10-28 国产安卓手机去广告 Android Ad Cleaner
- 10-26 豆包去水印网页源码程序
- 10-26 最新2077高定网址导航系统源码 全开源
- 10-26 一键部署星播直播系统源码
- 10-26 吃瓜主题3.0视频源码
- 10-25 海洋个人引导页4迎新版【开源】
取消回复欢迎你发表评论:
- 协助本站优化一下
- 最近发表
- 1【热舞随看】1.0.0 大饱眼福~可以起飞
- 2【藏龙小说】2.0.6.231128 正版小说资源免费看 永久vip
- 3【天际视频】5.0.5 影视综艺动漫全都有 免费看
- 4【Animius动漫】1.3.6 国内外番剧免费看 二次元聚集地
- 5测网速V3.3.9 准确、快速的进行网络测速
- 6囧次元V1.0.11 海量番剧畅快观看
- 7千寻运动助手系统源码/全开源/附小程序源码
- 8轻美图纯PHP图库网站源码(内含1000+美图)
- 9大佬写的AI聚合api网关系统源码
- 10魔方4K影视V3.3.2 主打海量资源与纯净体验
- 11粉猪影视V1.0.8 海量好剧集随心看
- 12苍云阅读V1.5.3 海量小说免费看
- 13【一键书阁】1.6.3 正版资源免费看 功能全解锁
- 14【当鸟动漫】1.0.11 二次元聚集地 追番神器 无广告
- 15UU远程v4.45.0 手机远程控制电脑 远程操控 文件互传
Copyright© XGW9.COM版权所有〖小庚资源网〗
〖恒创科技〗为本站提供专业云计算服务
本站发布的内容来源于互联网,如果有侵权内容,请联系我们删除!E-mail:xgzyw6@outlook.com
关于我们|我要投稿|免责声明|XML地图









暂无评论,来添加一个吧。