Home  >  Article  >  Web Front-end  >  Why margin-top doesn't work_html/css_WEB-ITnose

Why margin-top doesn't work_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:25:44995browse





周末疯狂购





        

周末每晚8点特惠秒杀


        


        


        

                

  •                 

                        

                            

    2013-03-06

    倒计时

                        


    专业方程式特护修纹眼霜15ml




    图片


    限量1000件,每人限购5件




                            
    10.99元


    原价:100元


                    


  •                 

                        

                            

    2013-03-06

    倒计时

                        


    专业方程式特护修纹眼霜15ml




    图片


    限量1000件,每人限购5件




                            
    10.99元


    原价:100元


                    


  •                 

                        

                            

    2013-03-06

    倒计时

                        


    专业方程式特护修纹眼霜15ml




    image


    Limited to 1,000 pieces, each person can purchase only 5 pieces



    Original price: 100 yuan


    🎜> < ;/div>




    • 12345

    • 67890

    • < ;li class="three">111213










    The page after it comes out looks like this:





















    Reply to the discussion (solution)

    The div element where the .hezi class is located, its child elements are all floating. You did not clear the floats in this element, so the .hezi element does not occupy space. of.

    .hezi Add {overflow:hidden;} to clean up the floats and give it a try.


    The hezi div does not have clear float.

    Clear float is not only clear:both.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn