2017-11-15 14 views
-1

Modal without inspecting私のモーダルコンテンツdoes'tショー私はブラウザ

enter image description here

Modal After inspect the browser window

enter image description here

codepenリンクに細かい作業
+0

コードを入力してください – Hkachhia

+0

@Abdul Rehmanの問題は、メディアのクエリがある可能性がありますので、画像スライダが原因である可能性があります。検査画面は縮小され、スライダーが表示されます。 –

+0

メディアクエリは適用されていません –

答えて

0

その検査まで:https://codepen.io/kalaiselvan/pen/POKyKw

$('#exampleModal').on('show.bs.modal', function(e) { 
 
     $(window).resize(); 
 
     $(window).resize(); 
 
    }); 
 
    $('#lightSlider').lightSlider({ 
 
     gallery: true, 
 
     item: 1, 
 
     loop: true, 
 
     slideMargin: 0, 
 
     thumbItem: 9 
 
    });
.demo { 
 
     width: 450px; 
 
    } 
 

 
    ul { 
 
     list-style: none outside none; 
 
     padding-left: 0; 
 
     margin-bottom: 0; 
 
    } 
 

 
    li { 
 
     display: block; 
 
     float: left; 
 
     margin-right: 6px; 
 
     cursor: pointer; 
 
    } 
 

 
    img { 
 
     display: block; 
 
     height: auto; 
 
     max-width: 100%; 
 
    }
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" /> 
 
    <link href="https://cdnjs.cloudflare.com/ajax/libs/lightslider/1.1.3/css/lightslider.min.css" rel="stylesheet" /> 
 
\t 
 
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> 
 
    <script src="https://cdnjs.cloudflare.com/ajax/libs/lightslider/1.1.3/js/lightslider.min.js"></script> 
 
    <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script> 
 
    
 
    <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal"> 
 
     Launch demo modal 
 
    </button> 
 
\t 
 
    <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> 
 
     <div class="modal-dialog" role="document"> 
 
     <div class="modal-content"> 
 
      <div class="modal-header"> 
 
      <h5 class="modal-title" id="exampleModalLabel">Modal title</h5> 
 
      <button type="button" class="close" data-dismiss="modal" aria-label="Close"> 
 
       <span aria-hidden="true">&times;</span> 
 
      </button> 
 
      </div> 
 
      <div class="modal-body"> 
 
      <div class="col-md-12"> 
 
       <div class="demo"> 
 
       <ul id="lightSlider"> 
 
        <li data-thumb="https://sachinchoolur.github.io/lightslider/img/thumb/cS-1.jpg"> 
 
        <img src="https://sachinchoolur.github.io/lightslider/img/cS-1.jpg" /> 
 
        </li> 
 
        <li data-thumb="https://sachinchoolur.github.io/lightslider/img/thumb/cS-2.jpg"> 
 
        <img src="https://sachinchoolur.github.io/lightslider/img/cS-2.jpg" /> 
 
        </li> 
 
        <li data-thumb="https://sachinchoolur.github.io/lightslider/img/thumb/cS-3.jpg"> 
 
        <img src="https://sachinchoolur.github.io/lightslider/img/cS-3.jpg" /> 
 
        </li> 
 
        <li data-thumb="https://sachinchoolur.github.io/lightslider/img/thumb/cS-4.jpg"> 
 
        <img src="https://sachinchoolur.github.io/lightslider/img/cS-4.jpg" /> 
 
        </li> 
 
        <li data-thumb="https://sachinchoolur.github.io/lightslider/img/thumb/cS-5.jpg"> 
 
        <img src="https://sachinchoolur.github.io/lightslider/img/cS-5.jpg" /> 
 
        </li> 
 
        <li data-thumb="https://sachinchoolur.github.io/lightslider/img/thumb/cS-6.jpg"> 
 
        <img src="https://sachinchoolur.github.io/lightslider/img/cS-6.jpg" /> 
 
        </li> 
 
        <li data-thumb="https://sachinchoolur.github.io/lightslider/img/thumb/cS-7.jpg"> 
 
        <img src="https://sachinchoolur.github.io/lightslider/img/cS-7.jpg" /> 
 
        </li> 
 
        <li data-thumb="https://sachinchoolur.github.io/lightslider/img/thumb/cS-8.jpg"> 
 
        <img src="https://sachinchoolur.github.io/lightslider/img/cS-8.jpg" /> 
 
        </li> 
 
        <li data-thumb="https://sachinchoolur.github.io/lightslider/img/thumb/cS-9.jpg"> 
 
        <img src="https://sachinchoolur.github.io/lightslider/img/cS-9.jpg" /> 
 
        </li> 
 
        <li data-thumb="https://sachinchoolur.github.io/lightslider/img/thumb/cS-10.jpg"> 
 
        <img src="https://sachinchoolur.github.io/lightslider/img/cS-10.jpg" /> 
 
        </li> 
 
        <li data-thumb="https://sachinchoolur.github.io/lightslider/img/thumb/cS-11.jpg"> 
 
        <img src="https://sachinchoolur.github.io/lightslider/img/cS-12.jpg" /> 
 
        </li> 
 
        <li data-thumb="https://sachinchoolur.github.io/lightslider/img/thumb/cS-13.jpg"> 
 
        <img src="https://sachinchoolur.github.io/lightslider/img/cS-13.jpg" /> 
 
        </li> 
 
       </ul> 
 
       </div> 
 
      </div> 
 
      </div> 
 
      <div class="modal-footer"> 
 
      <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> 
 
      <button type="button" class="btn btn-primary">Save changes</button> 
 
      </div> 
 
     </div> 
 
     </div> 
 
    </div>

+0

これはサムネイルがありません –

+0

私はキャプションを検査して写真に送ったのと全く同じデザインが欲しいです。 –

+0

私は私の回答を更新しました@Abdul Rehman –

関連する問題