關于我的代碼跟大家不一樣,但顯示效果一樣,dw也沒有報錯,哪位大大能解釋下我的是否對錯?
<!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:970px; margin:0 auto;}
#mainbody{margin-top:15px;}
#left{ margin-left:0;width:110px; float:left; border:1px solid #999; }
#mid{ position:absolute;margin-left:130px;width:650px;border:1px solid #999;}
#right{ position:relative; width:177px; right:o;margin-left:17px;float:right;border:1px solid #999;}
</style>
</head>
<body>
<div id="wrap">
? ? ?<div id="header"><img src="http://img1.sycdn.imooc.com//5369cd6e0001a15b09700088.jpg" width="970" height="88" /></div>
? ? ?<div id="mainbody">
? ? ? ? ? <div id="left"><img src="http://img1.sycdn.imooc.com//5369cd0e00011e3901090487.jpg" width="109" height="487" /></div>
? ? ? ? ? <div id="mid"><img src="http://img1.sycdn.imooc.com//5369cd3c00013e9e06490439.jpg" width="649" height="439" /></div>
? ? ? ? ? <div id="right"><p>歡迎使用金山軟件出品的愛詞霸,在線查詢你英語詞匯、句子釋義</p><img src="http://img1.sycdn.imooc.com//5369cd540001d8e101770329.jpg" width="177" height="329" /></div>
? </div>
</div>
</body>
</html>
2017-03-19
*{margin:0; padding:0;}
#wrap{width:970px; margin: 0 auto}
#mainbody{position: relative; margin-top:15px;}
#left{width:110px; float: left;border:1px solid #999;}
#mid{float: left; width:650px;border:1px solid #999;margin-left: 13px;}
#right{position: absolute;top: 0;margin-left:790px; border:1px solid #999;}
自己對一下 ?哪里不一樣
2017-03-10
上圖啊