已采纳回答 / 子木李
有的,一般来说,元素都有默认的样式,比如margin、padding这些的,清除了比较好,然后font-size、font-weight相当于设置了网页的默认字体号和加粗字体,清除默认样式也可以用:<...code...>后者用的相对多些
2015-10-23
.top{background:gray;display:inline-block;}
.main{position:relative; bg......;h...;w...;}
.left{height:300px;width:200px;background:blue;position:absolute;top:0px;left:0px;}
.right{ height:300px;width:100%;background:green;margin-left:210px;}
.foot{background:orange;display:inline-block;}
.main{position:relative; bg......;h...;w...;}
.left{height:300px;width:200px;background:blue;position:absolute;top:0px;left:0px;}
.right{ height:300px;width:100%;background:green;margin-left:210px;}
.foot{background:orange;display:inline-block;}
.main{background:red;height:300px;width:100%;position:relative;}
.left{height:300px;width:29%;background:blue;position:absolute;top:0px;left:0px;}
.right{ height:300px;width:70%;background:green;position:absolute;top:0px;right:0px;}
.foot{height:50px;background:orange;clear:both;}
.left{height:300px;width:29%;background:blue;position:absolute;top:0px;left:0px;}
.right{ height:300px;width:70%;background:green;position:absolute;top:0px;right:0px;}
.foot{height:50px;background:orange;clear:both;}