vh 存在兼容性问题,不建议使用
<!DOCTYPE html> <html lang="en"head> meta charset="UTF-8"name="viewport" content="width=device-width,initial-scale=1,user-scalable=no,maximum-scale=1,minimum-scale=1"title>Document</link rel="stylesheet" href="font/iconfont.css"style> *{margin:0;paddingbox-sizingborder-box} bodybackground-color pink ullist-style none atext-decorationcolor#333 .footerwidth100%height80pxposition fixedbackgroundlightbluebottomdisplay flex .footer liflex1/*平分空间*/ .footer li aflex-directioncolumnjustify-content center水平居中align-itemscenter垂直居中} bodyul class="footer"> li> a href="#"> i ="iconfont icon-gouwuche"></ispan>购物车a="iconfont icon-file">文件="iconfont icon-saomiao">扫描="iconfont icon-xialajiantou">箭头ulhtml>
卡片排列实例
font-size12px .container20pxflex-wrapwrap space-around .item45%130pxborder-radius5pxmargin-bottom .leftspace-around .right button orange#fff10pxborderdiv ="container"="item"="left"p>前端小白入门手册>适用人群:没有任何前端基础的小白>费用:¥999div="right"><button>加入购物车>