精美实用!网站自适应图片文字广告位代码分享
作者:小编日期:2025-04-20浏览:5675分类:只有源码
<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-21 《侠盗猎车手6》 v1.0.2.1_CyberLeek泄露版
- 11-21 《城市:天际线2》v1.6.4f1中文版
- 11-21 《15日僵尸幸存者》中文版
- 11-21 《日式拉面模拟器》中文版
- 11-21 托托的奇幻之旅/Toto's Journey
- 11-21 网上很火的隐图工坊源码部分开源
- 11-21 《HR:人类遗骸》中文版
- 11-21 《吃光整个超市》中文版
- 11-21 《系统降临》中文版
- 11-21 《新纪元:起源》中文版
- 11-20 仅1.4M准3A的html枪战游戏Saltline源码
- 11-19 纸鱼博客系统————一个轻量 PHP 博客系统
取消回复欢迎你发表评论:
- 协助本站优化一下
- 最近发表
- 1AI翻唱:AI歌手对口型《茶花开了该回家了》+课程+提示词
- 2全局鼠标手势软件 Aitiy v1.1.0
- 3AI音乐翻唱MV说唱RAP演唱会AI古风现代女团视频教程
- 4QQ空间说说评论点赞助手
- 5全能NFC读卡器v1.0.2去广告版 读取各类NFC标签门禁卡公交卡等
- 6Captura 8.0.0 —— 屏幕捕获录制
- 7星屿桌面v1.0.0 仿电脑桌面 窗口化运行应用 简洁流畅
- 8AI漫剧从入门到精通(全流程SOP)
- 9极速网络管家v1.0.12高级版 找回删除的照片和视频 手机加速 图片修复
- 10claude和codex软件安装教程
- 11ai漫剧创作提示词资源包
- 12安卓谷歌键盘PixelBoard v18.6.3.100
- 13安卓剪映CapCut国际版 v20.1.0 高级版
- 14《侠盗猎车手6》 v1.0.2.1_CyberLeek泄露版
- 15《城市:天际线2》v1.6.4f1中文版
Copyright© XGW9.COM版权所有〖小庚资源网〗
〖恒创科技〗为本站提供专业云计算服务
本站发布的内容来源于互联网,如果有侵权内容,请联系我们删除!E-mail:xgzyw6@outlook.com
关于我们|我要投稿|免责声明|XML地图



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