精美实用!网站自适应图片文字广告位代码分享
作者:小编日期:2025-04-20浏览:5640分类:只有源码
<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-16 9998套精品ppt模板合集v
- 11-15 《好多猫咪!》中文版
- 11-15 《归墟行:人界篇》中文版
- 11-15 《中西部90:奔流城怪味餐厅》中文版
- 11-15 《末日列车》中文版
- 11-15 ai开发的答题赚电脑使用时间开源
- 11-14 《99天生存指南》中文版
- 11-14 《迷家》中文版
- 11-14 《不良学生恋爱》中文版
- 11-14 《暗黑破坏神3:夺魂之镰 – 终极邪恶版》
- 11-14 《鸡瘟检察官:最后的IKUN》中文版
- 11-14 《重生2我独自逆袭》中文版
取消回复欢迎你发表评论:
- 协助本站优化一下
- 最近发表
- 19998套精品ppt模板合集v
- 2小米全系列拍摄用预设包
- 3刷圈兔v10.2.0高级版 一键生成聊天记录 转账 红包和朋友圈动态...
- 4自购资源:800首可商用纯音乐背景bgm短视频配乐(公司宣传片游戏动画轻音乐剪辑)
- 5治愈系风景视频素材合集 空镜头vlog自媒体剪辑素材
- 6之前买的4k无版权素材 共300+套
- 7墨知v1.5.0 纯净本地阅读器 支持听书 无广告 离线也能看
- 8NVIDIA图形驱动 v 621.24
- 9IDA Pro v9.4.260714 汉化全插件美化版
- 10IDA Pro v9.5.261026 汉化完整版
- 11Adobe Premiere Pro 2027 v27.0.0.88
- 12Adobe Premiere Pro 2026 v26.5.3.7
- 13安装包制作工具v24.2.0绿色便携版
- 14Ai图片降噪Topaz Photo Pro v1.8.1.0高级版
- 15万兴全能格式转换器v18.0.5.80绿色版
Copyright© XGW9.COM版权所有〖小庚资源网〗
〖恒创科技〗为本站提供专业云计算服务
本站发布的内容来源于互联网,如果有侵权内容,请联系我们删除!E-mail:xgzyw6@outlook.com
关于我们|我要投稿|免责声明|XML地图



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