關于塊沒法居中的問題。
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type";content="text/html";charset="utf-8">
<title>幾米的世界</title>
<style type="text/css">
*<margin:0;padding:0;font-size:12px;font-family:Arial,Helvetica,sans-serif,"宋體" >
a{text-decoration:line-through;}
a:hover{text-decoration:underline;}
h2{line-height:50px;font-size:14px;margin-bottom:5px;}
p{line-height:20px;text-indent:26px;margin-bottom:5px;}
#wrap{margin:0 auto; width:770px;}
#header{border:4px solid #badbdb; width:770px;height:92px;
text-align:right;
background:url(http://img1.sycdn.imooc.com//536c9dc30001135400800080.jpg) no-repeat;?
color:blue;}
? ? #header a{color:red;margin:0 5px;}
#mainbody #footer{width:100%}
#footer{text-align:center;margin:20px;}
.content{background:#eff9f9;width:770px;
border:4px solid #badbdb;pading:44px 0 0 0;}
.profile{background:url(../images/t_profile.gif) no-repeat #eff9f9;}
.book{background:url(../images/t_book.gif) no-repeat #eff9f9;}
.book img{border:1px solid #b1adaa;margin:10px 18px;}
</style>
</head>
<body>
?<div id="wrap"></div>
? ? <div id="header"><a href="#">聯系我們</a>|<a href="#">站點地圖</a></div>
? ? <div id="mainbody">
<div class="content profile">
<h2>:: 關于幾米 ::</h2>
<p>幾米,一位用畫筆描繪夢想、吸引無數讀者畫迷為之瘋狂,知名度迅速竄升的當紅繪本作家,同時卻也是一個靦腆善良的中年男子,偏好簡單的居家生活,低調而淡泊</p>
<p>幾米的個性害羞內向,不擅長用言語表達,他用敏銳細膩的心去感受周遭的人與事,將情感、思緒藉由「繪畫」傳達他對大千世界的看法,作品風貌多變,創作力源源不絕,因此看幾米的作品,就像是走入他的內在,幾米的故事引領著每一位欣賞他作品的人看到并相信世界上的美與善,同時也反應了現代人生活中的點點滴滴,因此每個人都能在他的故事找到一個映照和寄托,或許這就是幾米作品的迷人之處。</p>
</div>
</div>
? ? <div class="content book">
<a href="#"><img src="http://img1.sycdn.imooc.com//536c9dc30001135400800080.jpg";weight:80;height;80></a>
<a href="#"><img src="http://img1.sycdn.imooc.com//536c9dc30001135400800080.jpg";weight:80;height;80></a>
</div>
<div id="footer">copyright ? 2004-2012 Jimmyspa.com All Rights Reserved.</div>
</body>
</html>

2016-05-19
<a> 標簽,鏈接下劃線是默認存在的,加上 #header a{text-decoration:none;}這句話就行了
2016-07-08
#mainbody #footer{width:100%} ?一個應該是這里沒加逗號#mainbody,#footer{width:100%}
還有一個是在wrap這個模塊下的子標簽模塊就不用再設置他們的width了,比如.content{width:770px}就可以去掉,你試試,這樣就能居中了
2016-05-18
2016-05-18
已經找到第二個問題了~ ?結束標簽放太早了
2016-05-18
哪里出錯了~~??? 哭了