不明白,為什么跟老師代碼完全一樣,但編譯出來的效果確實一直不變呢?
<!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=gb2312" />
<title>無標題文檔</title>
<style>
body,p,h1,h2,h3,h4,h5,h6,form,ul,ol,hr{margin: 0;padding: 0;font:14px/1.5normal,"Arial", "sans-serif", "微軟雅黑", "宋體", "Tahoma";color:#666}
ul,ol{list-style:none}
.demo01{width:600px;}
.demo01.left{width:100px;float:left}
.demo01.right{width:500px;float:right}
</style>
</head>
<body>
<div class="demo01">
<div class="left">
<img src="../install/website/website1/icon_1.gif" />
? ? ? ? </div> ? ? ??
? ? ? ? <div class="right">
? ? ? ? <h6>櫻桃小丸子</h6>
? ? ? <p>奧鵬教育是由教育部高等教育司2001年12月批準立項試點,2005年4月正式批準運營的遠程教育公共服務體系,為遍布全國的學員提供學歷(專升本,高起專)和非學歷教育咨詢、報名、學習輔導、課程考試、交費等7X24小時學習支持服務400-810-6736。</p>
<span>10分鐘之前</span>
? ? ? ? </div>
? ? </div>
</body>
</html>
2017-03-16
你是哪里不一樣。我的是設置了float:left和float:right,但是一個在上面一個在下面。
2017-01-21
已經明白了,謝謝各位!?。。。?/p>