gpt4 book ai didi

php - 限制连续图像的数量?

转载 作者:行者123 更新时间:2023-11-27 22:51:19 28 4
gpt4 key购买 nike

我有一组图像,我想显示它们作为链接保存到我的数据库中的位置,每个图像都有它的拇指,现在我已经使用 limit 查询来显示少量用户需要下一步显示其他图像的图像,我的问题是我如何排列这些图像,其中 4 个图像连续 3 列

最佳答案

HTML:

<div id="image_container">
<img src="" alt="" />
<img src="" alt="" />
<img src="" alt="" />
<img src="" alt="" />
...
</div>

CSS:

#image_container { width:440px; overflow:hidden; }
#image_container img { width:100px; margin:5px; float:left; display:inline; }

您可能需要调整尺寸;这是一般概念。

关于php - 限制连续图像的数量?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2792620/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com