我這個代碼對嗎? 請大神們幫忙看下謝啦
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>混合布局編程挑戰</title>
<style type="text/css">
body{ margin:0; padding:0; font-size:30px; color:#fff}
.top{width:100%;height:200px;background:gray;}
.main{width:100%;height:800px;background:red;}
.left{ width:200px;height:800px;float:left;background:blue;}
.right{width:100%;height:800px;background:green;position:absolute;left:210px;top:200;}
.foot{width:100%;height:200px;background:orange;}
</style>
</head>
<body>
<div class="top">top</div>
<div class="main">
? ? <div class="right">right</div>
? ? <div class="left">left</div>
</div>
<div class="foot">foot</div>
</body>
</html>
2017-02-22
.top{background:#ccc;height:100px;}
.main{background:red;height:600px;}
.left{background:blue;height:600px;width:200px;}
.right{background:yellow;height:600px;width:100%;left:210px;position:absolute;}
.foot{background:orange;height:50px;}
這是我測試的最少代碼實現了,疑問或錯誤歡迎指出~!
2016-12-28
對是對了但是有點不好看==
2016-12-28
right直接float:right;即可,不需要絕對定位