유체 그리드 (http://twitter.github.io/bootstrap/scaffolding.html#fluidGridSystem)를 사용하고 같은 당신의 컨테이너 div에 100 % 폭을 추가
CSS :
<style type="text/css">
/* after your bootstrap css inclusing */
.container, .navbar-static-top .container, .navbar-fixed-top .container, .navbar-fixed-bottom .container
{
width: 100%;
}
</style>
HTML :
<div class="container">
<div class="row-fluid">
<div class="span4" style="background-color:red;">...</div>
<div class="span8" style="background-color:yellow;">...</div>
</div>
</div>
갱신 : 50 % 높이의 행으로 분할 :
CSS :
<style type="text/css">
/* after your bootstrap css inclusing */
body, html, .container,.row-fluid .hunderd{ height:100%; min-height:100%; !important;}
.container, .navbar-static-top .container, .navbar-fixed-top .container, .navbar-fixed-bottom .container
{
width: 100%;
}
.fifty {height:50%;min-height:50%;}
</style>
HTML :
<div class="container">
<div class="row-fluid fifty">
<div class="span6 hunderd" style="background-color:red;">...</div>
<div class="span6 hunderd" style="background-color:yellow;">...</div>
</div>
<div class="row-fluid fifty">
<div class="span6 hunderd" style="background-color:blue;">...</div>
<div class="span6 hunderd" style="background-color:orange;">...</div>
</div>
</div>
당신이 좀 더 자세하게 플러스 당신이 이미 가지고있는 코드를 제공 할 수 있을까요? 예를 들어, 화면을 채우는 각 섹션은 세로로 겹쳐서 아래로 스크롤 할 때 표시됩니까? – JMWhittaker
블록 레벨 요소는 기본적으로 부모 요소의 전체 너비를 차지합니다. 논리적 인 해결책은 요소의 너비를 제한하는 부트 스트랩의 클래스를 사용하지 않는 것입니다. – cimmanon
그래서 내가 부트 스트랩 페이지에 2 행을 가지고, 그들은 단지 거기에 내 24 인치 모니터에서 멈 춥니 다. 한 행에는 부엉이 배경이 있고 두 번째 행에는 검은 색 배경이 있습니다. 그 아래, 그것의 공백. – vpoola88