页面分栏实现

时间:2021-09-23 06:20:17

将页面分成上、中、下三部分,上部分显示导航,中部分成两个部分,,左边设置菜单,右边显示文本内容;下部显示版权信息。

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>页面结构</title>
<style type="text/css">
hehader,nav,article,footer
{border:solid 1px #666;padding:5px}
header{width:500px}
nav{float:float:left;width:60px;height:100px}
article{float:left;width:428px;height: 100px}
footer{clear:both;width:500px}
</style>
</head>

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

    咦?我的怎么和书本的页面效果不一样呢?代码没有错啊,浏览器盐也是一样的啊????