CSS column-count not respected

后端 未结 4 1580
清酒与你
清酒与你 2021-01-18 09:51

There\'s a similar question here with no real answer: CSS columns bug — 5 column count only showing 4 (with images)

I\'m using column-count to display e

4条回答
  •  -上瘾入骨i
    2021-01-18 10:16

    here work example, but with image wrap element.

    .wrap {    
        -webkit-columns: 4 auto;
        -moz-columns: 4 auto;
        columns: 4 auto;
    }
    
    .wrap .img {
        display: block;
        margin: 0 0 10px;
        line-height: 0px;
    }
    

    ​If change line-height then error there again.

    http://jsfiddle.net/NY2Zx/4/

提交回复
热议问题