왼쪽에 결과가 있고 오른쪽에 html> wrapper> container가 있습니다.높이가 100 %로 이동하지 않습니다.
이제이 두 가지 높이가 수정되지 않고 내용에 따라 100 %로 늘어나기를 원합니다. 어떤 경우에는 결과가 주보다 길고 그 반대도 마찬가지입니다. 저는 100 % 높이를 사용했지만 작동하지 않는 것 같습니다. 도와주세요!
html, body {
margin: 0;
padding: 0;
height: 100%;
}
#wrapper {
min-height: 100%;
position: relative;
width: 100%;
}
#container {
width: 1007px;
padding: 130px 0 0 0;
display: block;
}
.results {
width: 383px;
float: left;
background:
#fff;
display: block;
-webkit-box-shadow: -2px 0px 8px -6px #000;
-moz-box-shadow: -2px 0px 8px -6px #000;
box-shadow: -2px 0px 8px -6px #000;
padding-bottom: 60px;
}
.main {
width: 606px;
float: left;
padding: 15px 0 0 16px;
position: relative;
background: url(images/pattern.png) repeat;
height: 100%;
bottom: 0px;
}
<html lang="en>
<head></head>
<body>
<div id="wrapper">
<div id="container" class="clear fix">
<section class="results">
</section>
<section class="main">
</section>
</div>
</div>
</body>
</html>
HTML도 게시하십시오. – dfsq
두 열이 같은 크기가되기를 원하십니까? 그렇다면'overflow : auto'을'# Wrapper'에 추가하십시오. – Justin