如何实现盒子长度随图片长度而改变?

小程序 文章 2022-03-08 17:20 438 0 全屏看文

AI助手支持GPT4.0

如何实现盒子长度随图片长度而改变?How can I achieve that the length of the box changes with the length of the picture?

如何实现盒子长度随图片长度而改变?

当图片长度过于长时,盒子就被拉长,且图片长度小的盒子也被拉长,很不美观。如图,工具中的模拟器所示

入行没多久,不是很会,麻烦各位帮忙解决🙏

When the picture length is too long, the box is elongated, and the box with small picture length is also elongated, which is not beautiful. As shown in the figure, the simulator in the tool has not been in business for a long time and is not very good. Please help solve it 🙏

回答:

ꪶäꪗღꪖꪸꪀ:

如果不是做瀑布流的话 那就给图片一个固定高度就可以了

tomheng:

不是一两句可以解释清楚的,这种叫瀑布流布局,可以搜索下

微喵网络:

mode="widthFix"

拾忆:

百度搜索 瀑布流

-EOF-

AI助手支持GPT4.0