第一种:

<!DOCTYPE html>
<html>
<head>
<meta http-equie="Content-type" content="text/html;charset=utf-8" />
<title>使用HTML5结构化元素</title>
<style type="text/css">
    #header,#siderLeft,#siderRight,#footer {
        border:solid 1px #666;
        padding:10px;
        margin:6px;
    }
    
    #header {
        width:800px;
    }
    
    #siderLeft {
        float:left;
        height:100px;
        width:60px;
    }
    
    #siderRight {
        float:left;
        height:100px;
        width:706px;
    }
    
    #footer {
        clear:both;
        width:800px;
    }
</style>
</head>
<body>
<div id="header">导航</div>
<div id="siderLeft">菜单</div>
<div id="siderRight">内容</div>
<div id="footer">底部内容</div>
</body>
</html>

效果:



第二种:

<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<title>html5支持的页面</title>
<style type="text/css">
    header,nav,article,footer {
        border:solid 1px #666;
        padding:10px;
        margin:6px;
    }
    
    header {
        width:800px;
    }
    
    nav {
        float:left;
        height:100px;
        width:60px;
    }
    
    article {
        float:left;
        height:100px;
        width:706px;
    }
    
    footer {
        clear:both;
        width:800px;
    }
</style>
</head>
<body>

<header>导航</header>
<nav>菜单</nav>
<article>内容</article>
<footer>底部说明</footer>
</body>
</html>



相关文章:

  • 2021-05-04
  • 2021-10-01
  • 2022-01-21
  • 2022-12-23
  • 2022-12-23
  • 2021-11-22
  • 2021-07-20
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-13
  • 2021-11-28
  • 2021-07-24
  • 2021-06-13
  • 2021-08-15
  • 2021-10-19
相关资源
相似解决方案