為什么左邊層和右邊層不在同一行
<!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>
</head>
<style type="text/css">
body{margin:0 ; padding:0}
.main{ width:600px; position: relative}
.main{width:100px;float:left}
.main .left img{ margin-left:20px}
.main .right{ width:458px;padding:20px; float:right; background: #06F; border:1px solid #339; }
.main .right p{ font-size:12px; line-height:24px }
.main span{ position:absolute; right:20px; top:20px; font-size:12px}
</style>
<body>
<div class="main">
??? <div class="left"><img src="../站點/img.jpg"? width="50" height="50"/></div>
? <div class="right">
?? ?<h6>櫻桃小王子</h6>
??? <p>為什么會這樣為什么會這樣為什么會這樣為什么會這樣為什么會這樣為什么會這樣</p>
??? <span>10分鐘以前</span>
? </div>
</div>
</body>
</html>
2018-12-23
已經解決