|
|
直接复制粘贴就可以用,宽度1200px都是调好的。
- <!--广告位-开始--> <style> .index-ad { position: relative; margin-bottom: 10px; } .index-ad ul { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 8px; padding: 0; margin: 0; list-style: none; } .index-ad ul > div { display: contents; } .index-ad li { width: calc(50% - 4px); flex: 0 0 calc(50% - 4px); height: 70px; overflow: hidden; position: relative; border-radius: 10px; } .index-ad li img { display: block; width: 100%; height: 100%; } .index-ad li::before, .index-ad .index-topimg::before { position: absolute; content: "AD"; padding: 0 8px; height: 20px; background: rgb(0 0 0 / 32%); right: 0; bottom: 0; font-size: 12px; color: #fff; border-radius: 5px 0 0; display: flex; align-items: center; justify-content: center; z-index: 1; } .index-ad > ul > div:has(.index-topimg) { display: block; width: 100%; flex: 0 0 100%; } .index-ad .index-topimg { position: relative; width: 100%; border-radius: 10px; overflow: hidden; line-height: 0; } .index-ad .index-topimg a { display: block; } .index-ad .index-topimg img { display: block; width: 100%; height: auto; } </style> <div class="index-ad"> <ul> <div><!--开始<div class="index-topimg"> <a href="thread-7273-1-1.html" target="_blank"> <img src="data/attachment/doing/202611/22/221226xvpoux015o0vp604.jpg"> </a> </div>结束--> <div class="index-topimg"> <a href="thread-7273-1-1.html" target="_blank"> <img src="data/attachment/doing/202611/22/221226xvpoux015o0vp604.jpg"> </a> </div></div> <div><!--开始<li><a href="thread-7273-1-1.html" target="_blank"><img src="data/attachment/doing/202611/22/220315ncpkpk3vkpopvdp1.jpg"></a></li>结束--> <li><a href="thread-7273-1-1.html" target="_blank"><img src="data/attachment/doing/202611/22/220315ncpkpk3vkpopvdp1.jpg"></a></li></div> <div><!--开始<li><a href="thread-7273-1-1.html" target="_blank"><img src="data/attachment/doing/202611/22/220315ncpkpk3vkpopvdp1.jpg"></a></li>结束--> <li><a href="thread-7273-1-1.html" target="_blank"><img src="data/attachment/doing/202611/22/220315ncpkpk3vkpopvdp1.jpg"></a></li></div> </ul> </div> <!--广告位-结束-->
复制代码
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|