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> <P>{{SELLER.BULLETIN}}&L
t;/p> <p>{{seller.bulletin}}</p> </div> </div> <div class= "Detail-close" > <i class= "icon-close" ></i> </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>