CSS: Ignoring divs height when floating

后端 未结 3 878
灰色年华
灰色年华 2021-02-14 04:39

I\'m trying to display some pictures. All of them have the same width but different height. I\'m trying to do something like:

3条回答
  •  广开言路
    2021-02-14 05:02

    Sadly, you can't do this with CSS2/3.

    There is jQuery Masonry, a fairly small script that emulates float: top; and works well.

提交回复
热议问题