广告代码 一款彩色的文字广告 自适应广告 代码如下
<style type="text/CSS">
/**新增文字广告**/
.txtguanggao{
width: 100%;
overflow: hidden;
display: block;
box-shadow: 0 1px 2px 0 rgba(0,0,0,.05);
}
.txtguanggao a{
width: 24.5%;
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;
}
.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: 47.96%;
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;
}
}
</style>
<div class="txtguanggao">
<a href="#1" target="_blank" class="dh">超低价文字广告位</a>
<a href="#2" target="_blank" class="dh">超低价文字广告位</a>
<a href="#3" target="_blank" class="dh">超低价文字广告位</a>
<a href="#4" target="_blank" class="dh">超低价文字广告位</a>
<a href="#5" target="_blank" class="dh">超低价文字广告位</a>
<a href="#6" target="_blank" class="dh">超低价文字广告位</a>
<a href="#7" target="_blank" class="dh">超低价文字广告位</a>
<a href="#8" target="_blank" class="dh">超低价文字广告位</a>
</div>
代码仅有两排 需要多排 可自行设置
![图片[1]-文字广告 好看的彩色文字广告代码-村少博客](https://www.cunshao.com/wp-content/uploads/2021/04/20210407122617161776957799965.png)
© 版权声明
本站所发布的全部内容源于互联网搬运,请在下载后24小时内删除。如果有侵权之处请第一时间联系我们E-mail:86512@qq.com删除。敬请谅解!
THE END
请登录后发表评论
注册
社交帐号登录