.top{width:100%; height:100px; background:gray;}
.main{width:100%; height:300px; background:red;}
.right{width:100%; height:300px;margin-left:210px;position:absolute; background:green;}
.left{width:200px; height:300px;background:blue;}
.foot{width:100%;height:100px;background:orange;}
.main{width:100%; height:300px; background:red;}
.right{width:100%; height:300px;margin-left:210px;position:absolute; background:green;}
.left{width:200px; height:300px;background:blue;}
.foot{width:100%;height:100px;background:orange;}
.top{ height:100px; background:#dbdbdb;}
.main{ position:relative; height:500px; background:red;}
.left{ width:200px; height:500px;background:blue; position:absolute; top:0; left:0;}
.right{ height:500px; margin-left:200px; background:yellow;}
.foot{ height:50px; background:orange;}
.main{ position:relative; height:500px; background:red;}
.left{ width:200px; height:500px;background:blue; position:absolute; top:0; left:0;}
.right{ height:500px; margin-left:200px; background:yellow;}
.foot{ height:50px; background:orange;}
设计首页的第一步是设计版面布局。就象传统的报刊杂志编辑一样,我们将网页看作一张报纸,一本杂志来进行排版布局。 虽然动态网页技术的发展使得我们开始趋向于学习场景编剧,但是固定的网页版面设计基础依然是必须学习和掌握的。它们的基本原理是共通的,你可以领会要点,举一反三。
.top{width:100%;background:grey;height:100px;}
.main{width:100%;height:400px;background:red;overflow: hidden}
.left{width:200px;background:blue;height:400px;
position:absolute;left 0;top 100px;}
.right{height:400px;background:green;float:left;margin-left:210px;width: 100%}
.main{width:100%;height:400px;background:red;overflow: hidden}
.left{width:200px;background:blue;height:400px;
position:absolute;left 0;top 100px;}
.right{height:400px;background:green;float:left;margin-left:210px;width: 100%}