2016-08-10 4 views
0

그래서 페이지가 있고 스타일링을 위해 부트 스트랩을 사용하고 있습니다. background-color을 전체 높이로 설정하려고했으나 내용이 채워지지 않아 하단에 큰 공백이 남습니다. 여기 전체 높이 배경색과 부트 스트랩?

내 코드입니다 :

<div class="container-fluid" style="background-color: #f5faff; font-family: Segoe UI; padding: 0;"> 
    <div style="background-color: #0070c0; min-height:100px;"> 
     <h1 style="color: #ffffff; font-size: 24px; padding-left:20px; padding-top: 30px;">Problem Phase Worksheet:</h1> 
    </div> 
    <form class="form-horizontal" role="form" style="padding-left: 20px; padding-top: 20px;"> 
     <div class="col-md-6"> 
      <div class="form-group"> 
       <span style="color: #0070c0; font-size: 18px;">Inputs</span> 
      </div>   
      <div class="form-group"> 
       <label class="control-label" for="criteria" style="font-size: 14px;">Criteria: <a href="#criteriaModal" data-toggle="modal"><span style="color: #afabab;" class="glyphicon glyphicon-question-sign"></span></a></label> 
       <input type="text" class="form-control" id="criteria" ng-model="criteria" style="font-size: 14px;" placeholder="(e.g. more than 80%)"> 
      </div>    
      <div class="form-group"> 
       <label class="control-label" for="customer" style="font-size: 14px;">Customer: <a href="#criteriaModal" data-toggle="modal"><span style="color: #afabab;" class="glyphicon glyphicon-question-sign"></span></a></label> 
       <input type="text" class="form-control" id="customer" ng-model="customer" style="font-size: 14px;" placeholder="(e.g. enterprise system admins)"> 
       <!-- <p style="font-size: 12px;">(e.g. Infrastructure admins, network engineer, etc..)</p> -->  
      </div> 
      <div class="form-group"> 
       <label class="control-label" for="task" style="font-size: 14px;">Job to be Done: <a href="#criteriaModal" data-toggle="modal"><span style="color: #afabab;" class="glyphicon glyphicon-question-sign"></span></a></label> 
       <input type="text" class="form-control" id="task" ng-model="task" style="font-size: 14px;" placeholder="(e.g. keeping servers up to date)"> 
      </div> 
      <div class="form-group"> 
       <label class="control-label" for="problem" style="font-size: 14px;">Problem: <a href="#criteriaModal" data-toggle="modal"><span style="color: #afabab;" class="glyphicon glyphicon-question-sign"></span></a></label>   
       <input type="text" class="form-control" id="problem" ng-model="problem" style="font-size: 14px;" placeholder="(e.g. it takes to long (24+ hours))"> 
      </div> 
     </div> 
     <!-- criteriaModal --> 
     <div class="modal fade" id="criteriaModal" tabindex="-1" role="dialog" aria-labelledby="criteriaModalLabel" aria-hidden="true"> 
      <div class="modal-dialog"> 
       <div class="modal-content"> 
        <div class="modal-body"> 
         <button type="button" class="close" data-dismiss="modal" aria-hidden="true"> 
          &times; 
         </button> 
         <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean consequat odio vel fermentum faucibus. Phasellus vestibulum, justo sed vestibulum bibendum, risus mauris congue nisi, et iaculis ipsum nisl a turpis. Vivamus et purus diam. Proin sagittis nisl eu porttitor posuere. Phasellus feugiat nec elit et hendrerit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque blandit a quam eget malesuada. Cras lobortis augue nibh, a feugiat justo consequat ac. In sit amet pulvinar massa. In maximus, justo eget elementum laoreet, lacus nunc molestie lectus, at congue neque nisl quis est. Nam non laoreet mauris. Phasellus non ullamcorper libero. Duis dapibus ornare arcu in fringilla. Curabitur molestie ex eu nunc ultricies, id pharetra nisl semper.</p> 
        </div> 
        <div class="modal-footer"> 
         <input type="button" class="naviaBtn naviaBlue" data-dismiss="modal" value="okay"> 
        </div> 
       </div> 
       <!-- /.modal-content --> 
      </div> 
      <!-- /.modal-dialog --> 
     </div> 
     <!-- /.modal -->   
     <div class="col-md-6"> 
      <div> 
       <span style="color: #0070c0; font-size: 18px;">Examples</span> 
       <button type="button" class="btn btn-primary" style="float: right; font-size: 18px;"> 
        <span class="glyphicon glyphicon-envelope"></span> Email 
       </button> 
      </div>    
      <div style="background-color: #ffffff; padding: 15px; margin-top: 20px; border: 1px solid #ccc;">  
       <div> 
        <p style="font-size: 12px; color: #afabab;">HYPOTHESIS:</p> 
        <p style="font-size: 14px;">We believe that <span>{{ criteria || '[criteria]' }}</span> of <span>{{ (customer != null) ? customer : '[customer]' }}</span> are most frustrated about <span>{{ (task != null) ? task : '[task]' }}</span> because <span>{{ problem || '[problem]' }}</span>.</p> 
       </div> 
       <div> 
        <p style="font-size: 12px; color: #afabab;">CUSTOMER SCREENING CRITERIA:</p> 
        <p style="font-size: 14px;">We are looking for <span>{{ (customer != null) ? customer : '[customer]' }}</span> who are regularly involved in <span>{{ (task != null) ? task : '[task]' }}</span>.</p> 
       </div> 
       <div> 
        <p style="font-size: 12px; color: #afabab;">SCREENER:</p> 
        <p style="font-size: 14px;">How often do you <span>{{ (task != null) ? task : '[task]' }}</span> in your daily job?</p> 
       </div>  
       <div> 
        <p style="font-size: 12px; color: #afabab;">CUSTOMER INTERVIEW QUESTIONS:</p> 
        <p style="font-size: 14px;">Tell me about the last time when you were <span>{{ (task != null) ? task : '[task]' }}</span>?</p> 
        <p style="font-size: 14px;">What are the major challenges with <span>{{ (task != null) ? task : '[task]' }}</span>?</p> 
        <p style="font-size: 14px;">On a scale of 0-10, how frustrating are these problems? Why?</p>    
        <p style="font-size: 14px;">If you could wave a magic wand and be able to do anything about <span>{{ (task != null) ? task : '[task]' }}</span> in your daily job, what would it be?</p> 
       </div> 
      </div>   
     </div>       
    </form> 
</div> 

과 같습니다 :이에 잘못 뭐하는 거지

enter image description here

? 나는 부모 div에 모두 row-fluid 클래스를 사용해 보았지만 행운은 없습니다. 생각?

+0

는 전체 코드를 부여합니다. –

+0

높이 : 100 %; 귀하의 컨테이너 유체 클래스. –

답변

3

컨테이너 유체는 전체 높이에게로 사업부를 설정하지 않습니다

배경 색상을 설정하는 시도 직접적으로

<body> 

대신에, 당신의 디자인은 <head> 태그에서 그것을

+0

감사합니다. 나는 바보 같고 단순한 내가 지나치는 것을 알고있다. 실제로 각도를 통해 내 의견을 주입하고 그것을 잊어 버렸습니다. 감사. – Mark

+0

당신을 진심으로 환영합니다. –

1

을 허용하는 경우 페이지의 내부 스타일을 작성하십시오.

body{ background-color: green; }

이제 페이지는 전체 높이 배경색이있을 것이다.

편집 : 다음은 인라인 스타일 코드입니다.

<head> 
//Link to the bootstrap.css file here. 
//internal style for the page. 
<style> 
    body { background-color:green;} 
</style> 
</head> 
<body> 

</body> 
+0

body 태그에 head 태그 내부 스타일이 있습니까? 머리 태그에 본체의 내부 스타일을 쓰는 방법 –

+0

@VishalPanara, 편집을 확인하십시오. – vivek

+0

이제 괜찮아 ....! –

2

당신은 전체 페이지에 걸쳐 배경을 할당 할 수 있습니다

@import url('https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css'); 
 

 
body { 
 
    background-color: #f5faff; 
 
    font-family: Segoe UI; 
 
    font-size: 14px; 
 
}
<div class="container-fluid"> 
 
    <div style="background-color: #0070c0; min-height:100px;"> 
 
     <h1 style="color: #ffffff; font-size: 24px; padding-left:20px; padding-top: 30px;">Problem Phase Worksheet:</h1> 
 
    </div> 
 
    <form class="form-horizontal" role="form" style="padding-left: 20px; padding-top: 20px;"> 
 
     <div class="col-md-6"> 
 
      <div class="form-group"> 
 
       <span style="color: #0070c0; font-size: 18px;">Inputs</span> 
 
      </div>   
 
      <div class="form-group"> 
 
       <label class="control-label" for="criteria">Criteria: <a href="#criteriaModal" data-toggle="modal"><span style="color: #afabab;" class="glyphicon glyphicon-question-sign"></span></a></label> 
 
       <input type="text" class="form-control" id="criteria" ng-model="criteria" placeholder="(e.g. more than 80%)"> 
 
      </div>    
 
      <div class="form-group"> 
 
       <label class="control-label" for="customer">Customer: <a href="#criteriaModal" data-toggle="modal"><span style="color: #afabab;" class="glyphicon glyphicon-question-sign"></span></a></label> 
 
       <input type="text" class="form-control" id="customer" ng-model="customer" placeholder="(e.g. enterprise system admins)"> 
 
       <!-- <p style="font-size: 12px;">(e.g. Infrastructure admins, network engineer, etc..)</p> -->  
 
      </div> 
 
      <div class="form-group"> 
 
       <label class="control-label" for="task">Job to be Done: <a href="#criteriaModal" data-toggle="modal"><span style="color: #afabab;" class="glyphicon glyphicon-question-sign"></span></a></label> 
 
       <input type="text" class="form-control" id="task" ng-model="task" placeholder="(e.g. keeping servers up to date)"> 
 
      </div> 
 
      <div class="form-group"> 
 
       <label class="control-label" for="problem">Problem: <a href="#criteriaModal" data-toggle="modal"><span style="color: #afabab;" class="glyphicon glyphicon-question-sign"></span></a></label>   
 
       <input type="text" class="form-control" id="problem" ng-model="problem" placeholder="(e.g. it takes to long (24+ hours))"> 
 
      </div> 
 
     </div> 
 
     <!-- criteriaModal --> 
 
     <div class="modal fade" id="criteriaModal" tabindex="-1" role="dialog" aria-labelledby="criteriaModalLabel" aria-hidden="true"> 
 
      <div class="modal-dialog"> 
 
       <div class="modal-content"> 
 
        <div class="modal-body"> 
 
         <button type="button" class="close" data-dismiss="modal" aria-hidden="true"> 
 
          &times; 
 
         </button> 
 
         <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean consequat odio vel fermentum faucibus. Phasellus vestibulum, justo sed vestibulum bibendum, risus mauris congue nisi, et iaculis ipsum nisl a turpis. Vivamus et purus diam. Proin sagittis nisl eu porttitor posuere. Phasellus feugiat nec elit et hendrerit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque blandit a quam eget malesuada. Cras lobortis augue nibh, a feugiat justo consequat ac. In sit amet pulvinar massa. In maximus, justo eget elementum laoreet, lacus nunc molestie lectus, at congue neque nisl quis est. Nam non laoreet mauris. Phasellus non ullamcorper libero. Duis dapibus ornare arcu in fringilla. Curabitur molestie ex eu nunc ultricies, id pharetra nisl semper.</p> 
 
        </div> 
 
        <div class="modal-footer"> 
 
         <input type="button" class="naviaBtn naviaBlue" data-dismiss="modal" value="okay"> 
 
        </div> 
 
       </div> 
 
       <!-- /.modal-content --> 
 
      </div> 
 
      <!-- /.modal-dialog --> 
 
     </div> 
 
     <!-- /.modal -->   
 
     <div class="col-md-6"> 
 
      <div> 
 
       <span style="color: #0070c0; font-size: 18px;">Examples</span> 
 
       <button type="button" class="btn btn-primary" style="float: right; font-size: 18px;"> 
 
        <span class="glyphicon glyphicon-envelope"></span> Email 
 
       </button> 
 
      </div>    
 
      <div style="background-color: #ffffff; padding: 15px; margin-top: 20px; border: 1px solid #ccc;">  
 
       <div> 
 
        <p style="font-size: 12px; color: #afabab;">HYPOTHESIS:</p> 
 
        <p>We believe that <span>{{ criteria || '[criteria]' }}</span> of <span>{{ (customer != null) ? customer : '[customer]' }}</span> are most frustrated about <span>{{ (task != null) ? task : '[task]' }}</span> because <span>{{ problem || '[problem]' }}</span>.</p> 
 
       </div> 
 
       <div> 
 
        <p style="font-size: 12px; color: #afabab;">CUSTOMER SCREENING CRITERIA:</p> 
 
        <p>We are looking for <span>{{ (customer != null) ? customer : '[customer]' }}</span> who are regularly involved in <span>{{ (task != null) ? task : '[task]' }}</span>.</p> 
 
       </div> 
 
       <div> 
 
        <p style="font-size: 12px; color: #afabab;">SCREENER:</p> 
 
        <p>How often do you <span>{{ (task != null) ? task : '[task]' }}</span> in your daily job?</p> 
 
       </div>  
 
       <div> 
 
        <p style="font-size: 12px; color: #afabab;">CUSTOMER INTERVIEW QUESTIONS:</p> 
 
        <p>Tell me about the last time when you were <span>{{ (task != null) ? task : '[task]' }}</span>?</p> 
 
        <p>What are the major challenges with <span>{{ (task != null) ? task : '[task]' }}</span>?</p> 
 
        <p>On a scale of 0-10, how frustrating are these problems? Why?</p>    
 
        <p>If you could wave a magic wand and be able to do anything about <span>{{ (task != null) ? task : '[task]' }}</span> in your daily job, what would it be?</p> 
 
       </div> 
 
      </div>   
 
     </div>       
 
    </form> 
 
</div>

관련 문제