要将多张图片进行平铺,可以将它们放在一个容器中,并设置容器的样式为平铺。可以使用以下代码实现:

<div style="display: flex; flex-wrap: wrap;">
    <img src="http://p3.itc.cn/q_70/images03/20230112/ef49053546cb44e5b849e145efa65480.jpeg" alt="图片" style="max-width: 180px; max-height: 240px;">
    <img src="http://p3.itc.cn/q_70/images03/20230112/ef49053546cb44e5b849e145efa65480.jpeg" alt="图片" style="max-width: 180px; max-height: 240px;">
    <img src="http://p3.itc.cn/q_70/images03/20230112/ef49053546cb44e5b849e145efa65480.jpeg" alt="图片" style="max-width: 180px; max-height: 240px;">
</div>

<li><a href="https://hnzy.bfvvs.com/play/1aK8RZzb/index.m3u8">1集</a></li><li>
<a href="https://hnzy.bfvvs.com/play/YaOgRyGa/index.m3u8">2集</a></li><li>  
<a href="https://hnzy.bfvvs.com/play/5eVv9P9e/index.m3u8">3集</a></li><li>

将需要平铺的图片放在一个 <div> 容器中,并设置其样式为 display: flex;flex-wrap: wrap;,这样图片就会自动平铺在容器中。

怎么修改下面代码多张图片为平铺img src=httpp3itccnq_70images0320230112ef49053546cb44e5b849e145efa65480jpeg alt=图片 style=max-width 180px; max-height 240px;summary lia href=httpshnzybfvvscomplay1aK8RZzbindexm3u81集alil

原文地址: https://www.cveoy.top/t/topic/i8Np 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录