广告效果预览
网站HTML广告代码如下
<div class="tp-ads">
<div class="tp-ads-list">
<a href="http://uuzzw.com/" target="_blank" title="" alt="">
<img src="https://tucdn.wpon.cn/2023/06/05/fe397151c1cc8.jpg" alt="">
</a>
</div>
<div class="tp-ads-list tp-ads-flex">
<a href="http://uuzzw.com/" target="_blank" title="" alt="">
<img src="https://tucdn.wpon.cn/2023/06/05/fe397151c1cc8.jpg" alt="">
</a>
<a href="http://uuzzw.com/" target="_blank" title="" alt="">
<img src="https://tucdn.wpon.cn/2023/06/05/fe397151c1cc8.jpg" alt="">
</a>
</div>
<div class="tp-ads-list tp-ads-flex">
<a href="http://uuzzw.com/" target="_blank" title="" alt="">
<img src="https://tucdn.wpon.cn/2023/06/05/fe397151c1cc8.jpg" alt="">
</a>
<a href="http://uuzzw.com/" target="_blank" title="" alt="">
<img src="https://tucdn.wpon.cn/2023/06/05/fe397151c1cc8.jpg" alt="">
</a>
</div></div>
网站HTML广告CSS代码如下
<style type="text/css"> .tp-ads{
width: 100%;
margin-top: 6px;
}
.tp-ads-list{
width: 100%;
}
.tp-ads-list a{
display: block;
width: 100%;
}
.tp-ads-list img{
width: 100%;
height: 70px;
margin: 4px 0;
}
.tp-ads-flex{
display: flex;
align-items: center;
justify-content: space-between;
}
.tp-ads-flex a{
width: 49.8%;
}
@media screen and (max-width: 1000px){
.tp-ads-list img{
width: 100%;
height: 25px;
}
}</style>
使用方法:将HTML和CSS代码复制后放置需要展示的地方,然后更换图片与广告链接即可,需要几行广告复制几行即可!
本文出自悠悠资源网