2016-11-14 3 views
0

Моя загрузочная мода появляется синяя линия вверху и внизу модального. Я не знал, почему синяя линия появляется сверху и снизу модального. Я хочу удалить синюю линию. Я слабый на английском, пожалуйста, извини меня, если я сделал какие-либо грамматические или орфографические ошибки.bootstrap modal не отображается согласно моему требованию

HTML КОД:

<div class="modal fade bs-example-modal-sm vcenter" id="deleteconfirmation" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel"> 
    <div class="modal-dialog modal-sm" role="document"> 
    <div class="modal-content"> 
    <div class="modal-header"> 
    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button> 
     <h4 class="modal-title" style="text-align:center">Are you sure you want to Delete it?</h4> 
    </div> 
    <div class="modal-body"> 
     <div class="form-group" style="text-align:center"> 
     <h6>By clicking on Yes button your ad will be Delete.</h6> 
     </div> 
    </div> 
    <div class="modal-footer" style="text-align:center"> 
     <button type="button" class="btn btn-default" data-dismiss="modal">No</button> 
     <button type="button" class="btn btn-primary" id="sayyes">Yes</button> 
    </div> 
    </div> 
    </div> 
    </div> 

CSS КОД:

.vcenter{ 
    position: relative; 
    top: 50%; 
    transform: translateY(-50%); 
} 

IMAGE: look of my modal

ответ

0

Вероятно, вы более избавлении некоторые стили,

<div class="container"> 
     <h3>Modal Example</h3> 
     <div> 
      <a href="#myModal1" role="button" class="btn" data-toggle="modal">Launch Modal</a> 
     </div>  
     <div id="myModal1" class="modal hide" tabindex="-1" role="dialog"> 
      <div class="modal-header"> 
       <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> 
       <h3>Standard Selectpickers</h3> 
      </div> 
      <div class="modal-body"> 
      </div> 
      <div class="modal-footer"> 
       <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button> 
       <button class="btn btn-primary">Save changes</button> 
      </div> 
     </div> 
    </div> 
<style> 

DEMO

1

Просто добавьте этот стиль style="outline: none !important" в свой главный div.

<div class="modal fade bs-example-modal-sm vcenter" id="deleteconfirmation" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" style="outline: none !important">

Синие линии не будет.

Смежные вопросы