码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2017-06-07 14:36:48      阅读:207      评论:0      收藏:0      [点我收藏+]

标签:clear   title   order   pre   内容   blog   asc   oom   html   

<!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不兼容怎么办?

标签:clear   title   order   pre   内容   blog   asc   oom   html   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!