내 문제에 바이올린 링크입니다 브라우저의 100 % 높이이어야한다 : 왼쪽에 나타나는 별도의 스크롤 막대가 얼마나 http://jsfiddle.net/YZrae/2/화면을 1 행 2 열로 나눕니다. 두 개의 열이
통보 .. 나는이 별도의 스크롤 막대를 제거해야하지만, 내가 뭘 잘못하고 있는지 알아낼 수 없다 ...
스크롤 막대를 유지하면서 나타나는 나머지는 제거하려면 왼쪽 및 오른쪽 열이 필요하다.
여기에 내가 바이올린에 사용 된 코드는 다음과 같습니다
HTML :
<div class="top_wrap"></div>
<div class="content_wrap">
<div class="col_right_wrap"></div>
<div class="col_left_wrap"></div>
<div class="clear"></div>
</div>
CSS :
html,body {
padding:0;
margin:0;
height:100%;
min-height:100%;
}
.top_wrap{
background-color:red;
height:50px;
}
.content_wrap{
background-color:blue;
height:100%;
position:relative;
}
.col_right_wrap{
float:right;
height:100%;
background-color:green;
width:50%;
overflow-y: scroll;
}
.col_left_wrap{
float:left;
width:49%;
height:100%;
background-color:yellow;
overflow-y: scroll;
}
div.clear { clear: both; height: 1px; overflow: hidden; font-size:0pt; margin-top: -1px; }
어떤 제안이? 감사!
네,이게 완벽합니다 - jQuery는 괜찮습니다. 다른 답변도 좋지만, 브라우저 창 높이가 변경 되더라도 고정 높이를 가진 상단 배너를 가질 수 있습니다. 고맙습니다. – user1637621
당신을 환영합니다! –