我需要一个内部弹出窗口,所以我打算使用bootstrap-Lightbox。
事实上,我按照这个tutorial进行操作,但似乎没有起作用。
我只完成了基础部分:
但是什么也没有弹出来,我得到了这些错误:
我只完成了基础部分:
<div id="demoLightbox" class="lightbox hide fade" tabindex="-1" role="dialog" aria-hidden="true">
<div class='lightbox-content'>
<img src="/ressources/images/ciel.jpg">
</div>
</div>
<a data-toggle="lightbox" href="#demoLightbox" class=" span2 thumbnail">
<img src="/ressources/images/ciel.jpg">
</a>
但是什么也没有弹出来,我得到了这些错误:
Uncaught TypeError: Cannot read property 'offsetWidth' of undefined bootstrap.min.js:6
Uncaught TypeError: Object [object Object] has no method 'hideWithTransition'
你有没有想法为什么这个不起作用?如果你知道原因,能否给我一个小例子告诉我该怎么做? 提前致谢。