CSS sticky footer layout + streaming layout

Source: Internet
Author: User
css sticky footer layout

Reference address: Zhang Xinxu teacher-css sticky footer layout
In combination with the project specific scene gives the introduction: clicks the information, pops up the floating layer, displays the detailed information. The bottom of the floating layer has a close button, has been at the base, when the content does not open a page size, the Close button at the bottom of the page. When the content is stretched beyond the size of one page, the bottom content is pushed down. method One: min-height+ Padding-bottom + margin-top

Layout Core framework:
Core: Three parts Detail-wrapper,detail-main,detail-close

<div v-show= "detailshow" class= "detail" > <div class= "Detail-wrapper clearfix" > ;d IV class= "Detail-main" > <p>{{seller.bulletin}}</p> <p>{{sel Ler.bulletin}}</p> <p>{{seller.bulletin}}</p> <p>{{seller. Bulletin}}</p> <p>{{seller.bulletin}}</p> <p>{{seller.bull Etin}}</p> <p>{{seller.bulletin}}</p> <p>{{seller.bulletin }}</p> <p>{{seller.bulletin}}</p> &LT;P&GT;{{SELLER.BULLETIN}}&L
            t;/p> <p>{{seller.bulletin}}</p> </div> </div> <div class= "Detail-close" > <i class= "icon-close" ></i> &LT;/DIV&G
        T
</div>
        . Detail position:fixed z-index:100 top:0 left:0 wi dth:100% height:100% Overflow:auto Background:rgba (7,17,27,0.8). Detai
                    L-wrapper min-height:100% ... detail-main margin-top:64px padding-bottom:64px ... detail-close position:relative width:3 2px height:32px margin: -64px Auto 0 Auto ... Set a negative value, pan up, or below the screen, see Clear:both icon-close font-size:32px
. Clearfix
    display:inline-block
    &::after
        display:block
        height:0
        line-height:0 Content: "."
        Clear:both
        Visibility:hidden
method Two: Flex
<body class= "Site" >
  
. Site {
  Display:flex;
  MIN-HEIGHT:100VH;
  Flex-direction:column
}

. site-content {
  flex:1;
}

A good link summary:
Basic summary-html, CSS layout, JS streaming layout

Method One: Flex + flex-wrap + align-items

<! DOCTYPE html> 
Related Article

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.