• h5新标签IE8不兼容怎么办?


    <!doctype html>
    <html lang="en">
    <head>
    <title>Document</title>
    <meta charset="UTF-8">
    <!-- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> -->

    <!-- IE=edge表示强制使用IE最新内核,chrome=1表示如果安装了针对IE6/7/8等版本的浏览器插件Google Chrome Frame(可以让用户的浏览器外观依然是IE的菜单和界面,但用户在浏览网页时,实际上使用的是Chrome浏览器内核),那么就用Chrome内核来渲染。
    -->

    <script type="text/javascript" src="js/html5shiv.js"></script> <!--让IE8兼容h5的标签-->


    <style type="text/css">
    body{
    clear: both;
    *zoom:1;

    }
    body:after{
    content: '';
    display: block;
    clear: both;
    visibility: hidden;
    height: 0px;
    }
    header{
    100%;
    height: 100px;
    border: 1px solid #666;
    float: left;
    margin-bottom: 60px;
    }
    footer{
    100%;
    height: 100px;
    border: 1px solid #666;
    margin-top: 100px;
    float: left;

    }
    section{
    80%;
    height: 300px;
    border: 1px solid #666;
    float: left;
    box-sizing: border-box;
    }
    aside{
    20%;
    height: 300px;
    border: 1px solid #666;
    float: right;
    box-sizing: border-box;
    }
    footer:nth-of-type(1){
    background: #ccc;
    }

    </style>

    </head>
    <body>
    <header>头部</header>
    <section>
    <input type="email" name="#" placeholder="请输入">
    </section>
    <aside>侧边栏

    </aside>
    <footer>底部内容</footer>


    </body>
    </html>

  • 相关阅读:
    python使用mysql数据库
    拆掉思维里的墙
    拆掉思维里的墙
    拆掉思维里的墙
    loadrunner通过web的post请求方法测接口 2
    loadrunner通过web的post请求方法测接口 2
    loadrunner通过web的post请求方法测接口 1
    luogu P1186 玛丽卡
    luogu P1855 榨取kkksc03
    暑期前复习
  • 原文地址:https://www.cnblogs.com/jinsuo/p/6956260.html
Copyright © 2020-2023  润新知