2015-04-17 13 views
6

izlenen gösterilmiyor . Plz bana Kodum aşağıdaki gibidir yardım:önyükleme lightbox tam olarak çalışma site.I galeri sayfası için lightbox uygulamak çalışıyorum adımları görüntüyü

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> 
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script> 

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"> 
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap-theme.min.css"> 
<link href="bootstrap-lightbox.css" rel="stylesheet"> 
<script src="bootstrap-lightbox.js"></script> 

Bu dosyalar head bölümünde dahildir. Vücut bölümünde kod gibidir: Yakalanmayan TypeError:

<div class="row"> 
    <div class="container"> 

     <div id="demoLightbox" class="lightbox hide fade" tabindex="-1" role="dialog" aria-hidden="true"> 
     <div class='lightbox-content'> 
       <img src="img-3.png"> 
        <div class="lightbox-caption"><p>Your caption here</p></div> 
     </div> 
     </div> 
     <div class="col-lg-3"> 
     <a data-toggle="lightbox" href="#demoLightbox" class="thumbnail">Open Lightbox 
       <img src="img-3.png"> 
     </a> 
     </div> 


    </div> 
</div> 

ben hata alıyorum this.hideWithTransition koduyla yanlış bir işlev Plz yardım değildir.

+0

şimdiye kadar herhangi bir çözüm bulabildin mi kodum kontrol sabit? –

cevap

0

deneyin Sınıf "hide" kaldırma:

<div id="demoLightbox" class="lightbox hide fade" tabindex="-1" role="dialog" aria-hidden="true"> 

o benim için çalışıyor.

+0

Eklenti artık korunmuyor. Bootstrap 3 ile çalışmayacak - repo'nun kendisinde önerilen gizlilik sınıfını yeniden tanımladığınızda bile. – dwilbank

0

sorun CODEPEN

<a data-toggle="lightbox" href="#demoLightbox" ><img class="thumbnail" src="http://www.jasonbutz.info/bootstrap-lightbox/assets/img/small.png"></a>  
<div id="demoLightbox" class="lightbox fade" tabindex="-1" role="dialog" aria-hidden="true"> 

     <div class='lightbox-content'> 
       <img src="http://www.jasonbutz.info/bootstrap-lightbox/assets/img/large.png" alt="" /> 

      <div class="lightbox-caption"><p>Your caption here</p></div> 
     </div> 
    </div> 
    </div> 
İlgili konular