首页 > 其他 > 详细

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

时间:2017-06-07 13:34:10      阅读:304      评论:0      收藏:0      [点我收藏+]
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style type="text/css">
        body{
            clear: both;
            *zoom:1;

        }
        body:after{
            content: ‘‘;
            display: block;
            clear: both;
            visibility: hidden;
            height: 0px;
        }
        header{
            width: 100%;
            height: 100px;
            border: 1px solid #666;
            float: left;
            margin-bottom: 60px;
        }
        footer{
            width: 100%;
            height: 100px;
            border: 1px solid #666;
            margin-top: 100px;
            float: left;
            
        }
        section{
            width: 80%;
            height: 300px;
            border: 1px solid #666;
            float: left;
            box-sizing: border-box;
        }
        aside{
            width:20%;
            height: 300px;
            border: 1px solid #666;
            float: right;
            box-sizing: border-box;
        }
    </style>
    <script type="text/javascript" src="js/html5shiv.js"></script>  
</head>
<body>
    <header>头部</header>
    <section>主体</section>
    <aside>侧边栏</aside>
    <footer>底部内容</footer>

    
</body>
</html>

 

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

原文:http://www.cnblogs.com/jinsuo/p/6956260.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!