Vertical Gaps Appearing - jQuery Masonry - (seamless photo grid)

后端 未结 3 1605
栀梦
栀梦 2021-01-24 09:33

This question has already been asked in a different situation.

I am trying to achieve a seamless photo grid with jQuery Masonry.

Check out my fiddle:

ht

3条回答
  •  爱一瞬间的悲伤
    2021-01-24 09:53

    Display your images as block-level elements:

    .ct-coll-item img {
      display: block;
    }
    

    See if this works: http://jsfiddle.net/drw158/sAkjv/1/

    As for the why, I have no idea. My guess would be because the images are inline elements, but that isn't a direct explanation.

提交回复
热议问题