flex布局实例--实现底部导航

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>加入购物车>

 

相关文章

HTML5和CSS3实现3D展示商品信息的代码
利用HTML5中的Canvas绘制笑脸的代码
Html5剪切板功能的实现
如何通过HTML5触摸事件实现移动端简易进度条
Html5移动端获奖无缝滚动动画实现
关于HTML5和CSS3实现机器猫的代码