<Template> <Divclass= "Product-detail-container"> <Divclass= "Detail"> <Divclass= "Detail-wrapper"> <Divclass= "Detail-main">height is not full screen, the Close button is fixed at the bottom of the screen, if full screen, the Close button followed the bottom of the page<!--<div> <p> height is not full screen, the Close button is fixed at the bottom of the screen, if full screen, the Close button followed the bottom of the page </p> <p> height is not full screen, the Close button fixed in the screen At the bottom of the screen, if full screen, the Close button followed by the bottom </p> <p> height of the page is not full screen, the Close button is fixed at the bottom of the display, if full screen, the Close button followed the bottom of the page </p> <p> height is not full screen , the Close button is fixed at the bottom of the screen, and if full, the Close button follows the bottom of the page </p> </div> - </Div> </Div> <Divclass= "Detail-close">Close</Div> </Div> </Div></Template><styleLang= "Scss"type= "Text/css"scoped>. Product-detail-container{//Is the component outermost div position:relative;//Box-sizing:Border-box;. detail{position:fixed;Top:0; Left:0;width:100%;Height:100%;Overflow:Auto;. detail-wrapper{width:100%;Min-height:100%;background:Green;. detail-main{//Margin-top:60px;//Set aside the height of the head padding:0 0 60px 0;//That is, the height of colse}}. Detail-close{position:relative;width:64px;Height:64px;margin:-60px Auto;//Attention Point Clear:both;font-size:32px; } } }</style><Script> //Import the subcomponents you want to useImport {mapgetters} from'Vuex'Exportdefault { } </Script>
Phone-side sticker layout, bottom button at bottom of screen