亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

我這么設置寬度了中間還是比其他的短呢,不是100%可以自適應寬度的嗎

<!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{width:770px;margin:0 auto;}
#header{width:100%;height:200px;border:1px solid red;}
#mainody{width:100%;height:200px;border:1px solid blue;}
#footer{width:100%x;height:200px;border:1px solid green;}
.content{boder:4px solid #06C;padding:44px 15px 15px 15px;width:770px}
.book{background:url(images/07.png)no-repeat #9CF}
img{margin:10px 18px;border:1px solid #999;}
</style>
</head>

<body>
<div id="wrap">
<div id="header"></div>
<div id="mainbody">
??? <div class="content book">
??????? <img src="images/01.png" width="80" height="80"/>
??????? <img src="images/02.png" width="80" height="80"/>
??????? <img src="images/03.png" width="80" height="80"/>
??????? <img src="images/04.png" width="80" height="80"/>
??????? <img src="images/06.png" width="80" height="80"/>
??? </div>
</div>
<div id="footer"></div>
</div>
</body>
</html>

正在回答

1 回答

你設置的#header,#mainody,#footer是包含在#wrap內的,100%值得是770px的100%。

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
網頁布局基礎
  • 參與學習       214663    人
  • 解答問題       1833    個

讓你精通CSS中三大定位機制,徹底掌握網頁布局的相關知識

進入課程

我這么設置寬度了中間還是比其他的短呢,不是100%可以自適應寬度的嗎

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號