2016-12-03 3 views
0

Madal Body content appear at modal footerModal Körper Inhalt Schwimmer Modal Fußbereich und besetzen Fußzeile sind

  • Ich habe in modal Fußzeile
  • , was ich schreibe in modal Körper ein Problem, bei dem der Inhalt des modalen Körper erscheinen konfrontiert wird es schweben zum modalen Fußzeile

<html> 
 
    <head> 
 
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> 
 
<link rel="stylesheet" href="dist/css/bootstrap-select.css"> 
 
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> 
 
<script src="dist/js/bootstrap-select.js"></script> 
 
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous"> 
 
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> 
 
    </head> 
 
    <body> 
 
<div class="row" id="aap_modals"> 
 
\t <div class="col-md-12" > 
 
     <button class="btn btn-success" data-toggle="modal" data-target="#myModal" ><i class="fa fa-book" aria-hidden="true" >&nbsp;&nbsp;&nbsp;Select Question Heading</i></button> 
 
\t </div> 
 
\t <!-- Modal HTML --> 
 
\t <div id="myModal" class="modal fade" data-keyboard="false"  data-backdrop="static"> 
 
     <div class="modal-dialog"> 
 
\t \t <div class="modal-content"> 
 
\t \t <div class="modal-header"> 
 
\t \t  <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> 
 
\t \t \t <h4 class="modal-title">Select Question</h4> 
 
\t \t </div> 
 
\t \t <div class="modal-body"> 
 
\t \t \t <div class="col-xs-2"> 
 
\t \t \t <label for="ex1">col-xs-2 and this is the problem </label> 
 
\t \t \t \t <input class="form-control" id="ex1" type="text"> 
 
\t \t \t </div> \t 
 
\t \t </div> 
 
\t \t <div class="modal-footer"> 
 
\t \t <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> 
 
\t \t <button type="button" class="btn btn-primary">Save changes</button> 
 
\t \t </div> 
 
\t </div> 
 
\t </div> 
 
    </div> 
 
</div> 
 
</body> 
 
    </html>

+1

Stil .col-xs-2 gesetzt {float: none}; keine Höhe da Bro –

Antwort

0

Sie verpasste eine Reihe innerhalb modalen Körper, Ersetzen, dass modalen Körper mit diesem Schnipsel,

 <div class="modal-body"> 
     <div class="row"> 
      <div class="col-xs-2"> 
        <label for="ex1">col-xs-2 and this is the problem </label> 
        <input class="form-control" id="ex1" type="text"> 
      </div> 
     </div> 
     </div> 
Verwandte Themen