내 HTML 또는 CSS가 작동하지 않고 컨테이너가 작동하지 않아 이미지 아래에 녹색 막대가 표시되어야합니다. 나는 그것의 자동 이후 그것은 그 div에 물건이 있다는 것을 인정하지 않는다고 너희들이 나를 도와 줄 수 있을까?게시물 컨테이너가 작동하지 않는 이유는 무엇입니까?
HTML을
<html>
<head>
<link rel="stylesheet" type="text/css" href="main2.css">
</head>
<body>
<div id="content">
<div id="postcontainer">
<div id="postpicture">
<img src="" width="80px" height="80px">
</div>
<div id="right">
<div id="postheader">
<div id="postname">
Sean Allen
</div>
<div id="postdate">
July 15, 2013
</div>
<div id="post">sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample sample </div>
</div>
</div>
<br class="clear" />
</div>
</div>
</body>
</html>
당신은 #postcontainer
을 삭제하지 않은
html, body {
Padding:0px;
margin:0px;
background:#EDEDED;
}
#content{
width:900px;
height:auto;
min-height:1000px;
background:#FFFFFF;
}
#postcontainer{
width:auto;
height:auto;
background:green;
}
#postpicture{
width:80px;
height:80px;
float:left;
padding:8px;
border:2px solid #FFFFFF;
outline:1px solid #AAAAAA;
background:yellow;
}
#right{
width:800px;
height:auto;
float:right;
background:blue;
}
#postheader{
width:790px;
height:auto;
background:red;
}
#postname{
width:auto;
height:19px;
padding:5px;
padding-top:10px;
font-weight:600;
float:left;
background:brown;
}
#postdate{
width:auto;
height:19px;
padding:5px;
padding-left:10px;
padding-top:13px;
float:left;
font-size:13px;
background:purple;
}
#post{
width:785px;
height:auto;
padding-left:15px;
float:left;
background:orange;
}
는 heres는 그것 http://jsfiddle.net/XCyfR/ –