网站自适应图片文字广告位hmtl代码分享

2025-04-20 0 374

文章摘要

本文介绍了两个类型的广告位:图片横幅广告和自适应文字广告,均用于“广告招商”服务。图片横幅广告采用居中展示,背景为深色,文字为白色,字体大小为24px;自适应文字广告位为超低价,尺寸为60px×60px,采用不同颜色搭配,布局为居中。广告位样式简洁,设计统一,整体风格统一且易于辨认。文章未提及具体招商要求或费用细节,但强调了广告位的虚位以待,适合需要推广的企业使用。

网站自适应图片文字广告位hmtl代码分享

 

<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>

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

本站所有资源来源于网络,仅限用于学习研究;无任何技术支持!不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。信息来自网络,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑中彻底删除内容。如果您喜欢,请支持正版。如有侵权请邮件与我们联系处理。

常见问题
  • 网盘有时候会因为名字 关键词导致失效 大家可以给管理员提供失效信息,我们会给大家适当积分进行奖励 我们会第一时间进行补充修正 感谢大家的配合 让我们共同努力 打造良好的资源分享平台
查看详情

相关文章

官方客服团队

为您解决烦忧 - 24小时在线 专业服务