我的答案二,請大家幫我看看有哪些代碼可以優化?
top{width:960px;height:100px;background:#ccc;margin:0 auto;}
.main{width:960px;height:400px;background:red;margin:0 auto;}
.left{ width:220px;height:400px;background:blue;float:left;}
.right{width:500px;height:400px;background:green;float:right}
.foot{width:960px;height:100px;background:#000;clear:both;margin:0 auto;}
2016-07-08
其實我懂得也不多。首先頭和尾(right)寬要求自適應,還有你不用每個都加上居中,只要給他們的父級body加就行,他要求右側先加載,個人覺得right代碼應該放在前面
2016-07-18
2016-07-08
主體 中間留了這么大一條縫啊