為什么達不到最終效果?請問我的代碼錯在哪里?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>無標題文檔</title>
<style type="text/css">
* {
? ? margin:0;
padding:0;
}
#wrap {
background:#00C;
margin:0 auto;
width:960px;
}
#header {
background:#FF3300;
width:100%;
}
#mainbody {
? ?background:#FC0;
? ?【任務1】width:100%; overflow:hidden;
}
.left {
width:800px;
height:200px;
background:#000;
【任務2】float:left;margin-right:20px;
}
.right {
width:140px;
height:500px;
background:#690;
【任務3】float:left;
}
#footer {
background:#639;
width:100%;
}
</style>
</head>
<body>
<div id="wrap">
? <div id="header">頭部</div>
? <div id="mainbody">
? ? <div class="left"></div>
? ? <div class="right"></div>
? </div>
? <div id="footer">版權部分</div>
</div>
</body>
</html>
2016-07-06
去掉代碼前面的“【任務】”后運行是可以的呀,請問你的運行結果是怎樣的?
2016-07-24
開玩笑
2016-07-16
沒有貶低的意思 ?只是 ?笑死我了 ?哈哈哈