Clearfix Clear Float

Source: Internet
Author: User
  1. Ultimate Edition One:
    . clearfix:after {
    Content: "\200b";
    Display:block;
    height:0;
    Clear:both;
    }
    . clearfix {*zoom:1;} /*ie/7/6*/
    Explanation: Content: "\200b"; this parameter, the Unicode character character has a "0 width space", that is u+200b, instead of the original ".", you can reduce the amount of code. And no longer use Visibility:hidden.

  2. . clearfix:before,.clearfix:after{
    Content: "";
    display:table;
    }
    . Clearfix:after{clear:both;}
    . clearfix{
    *zoom:1;/*ie/7/6*/
    }


    The two ultimate version of the code are very concise, the ultimate version of one and two can be used, the above code has been tested, we hurriedly use it, if there is any problem please timely feedback with me, if you still stay in the old code of Clearfix the time to quickly update the code bar.

This article is from the "9481468" blog, please be sure to keep this source http://9491468.blog.51cto.com/9481468/1619021

Clearfix Clear Float

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.