html5-新布局元素header,footer

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>header/footer</title>
    <style type="text/css">
        body{height: 708px}
        header{background: red;width: 100%;height: 10%}
        footer{background: red;width: 100%;height: 10%}
        #div0{width: 100%;height: 80%}
        #div1{width: 20%;height: 100%;float: left;background: #f0f0f0}
        #div2{width: 80%;height: 100%;float: left;background: #f8f8f8}
    </style>
</head>
<body>
    <!-- <pre>
    1类,控制页面内容;
    2类,辅助内容;
    布局新标签,注重内容不是注重形式,语义化,可控性,代码更加简洁,浏览器容易解析
    </pre> -->
<header>头部</header>
<div id="div0">
<div id="div1">侧边</div>
<div id="div2">主体</div>
</div>
<footer>底部</footer>
</body>
</html>

上一篇:TeamCity vs Jenkins: Which is the Better Continuous Integration (CI) Server for .NET Software Development?


下一篇:java集合 collection-list-LinkedList