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>加入购物车>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。