vs
in clearing

后端 未结 12 1415
醉话见心
醉话见心 2021-02-02 10:47

What is the difference


vs

??

Al

12条回答
  •  后悔当初
    2021-02-02 11:16

    I would use:

    and in your CSS just add:

    .clear {clear:both; height:0px; font-size:1px;}
    /* font-size:0px; does not work well on IE7, it works in IE8 and all other browsers. */ 
    

    You might say, why not:


    I typically use the clear class after float:left elements, and when using the
    instead of the

    they don't seem to work well on IE7 they don't clear as supposed, and on Safari4/Chrome they add unwanted space. I didn't have time to investigtae better this one, so it might be just an error on my design, all I know the

    in this case seem to be more cross-browser.

提交回复
热议问题