可參考我的代碼
<!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{ height: 100px; background: #CCCCCC;}
div{ text-align:center; line-height:50px}
.main{ margin: 0 auto;}
.left{width: 340px; height: 500px; background: #BFEFFF; float: left;}
.right{width: 900px; height: 500px; background: #B4EEB4; float: right;}
.fill{ background:#CD0000; height: 500px;}
.foot{ height: 100px; background: #EEC900; clear: both;}
</style>
</head>
<body>
<div class="top">top</div>
<div class="main">
? ? <div class="right">right</div>
? ? <div class="left">left</div>
</div>
<div class="fill"></div>
<div class="foot">foot</div>
</body>
</html>
2022-03-29
int類型賦值的時候是不用加引號的
vqoepbpbojwrogeauooinrbxqieihwaybeexuvuwoxrfnela
2019-05-06
治標不治本,瀏覽窗口縮小就不行了
2019-04-29
你這寫的什么玩意? 縮小瀏覽器布局都亂了
2019-01-18
我去。。
2018-12-29
不應該是float? 應該是position:absolute;