extra vertical space in IE after div clear

前端 未结 6 876
感情败类
感情败类 2021-01-05 02:06

I have created a simple grid of divs by left floating them and an empty div with a clear at the end of each row.

This works fine in Firefox, but in IE I get extra ve

6条回答
  •  鱼传尺愫
    2021-01-05 03:02

    .clear {
        clear: both;
        height: 0px;
        overflow: hidden;
    }
    

    Changing it to 0px works better..

提交回复
热议问题