首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >引导-图像库不显示完整的图像

引导-图像库不显示完整的图像
EN

Stack Overflow用户
提问于 2016-08-17 12:58:58
回答 1查看 794关注 0票数 1

我无法使最简单的自举图片库示例工作。

我从他们的网站上得到了以下HTML:

代码语言:javascript
复制
<!DOCTYPE HTML>
<head>
  <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
  <link rel="stylesheet" href="bower_components/blueimp-gallery/css/blueimp-gallery.min.css">
  <link rel="stylesheet" href="bower_components/Bootstrap-Image-Gallery/css/bootstrap-image-gallery.min.css">
</head>
<body>
  <!-- The Bootstrap Image Gallery lightbox, should be a child element of the document body -->
  <div id="blueimp-gallery" class="blueimp-gallery">
      <!-- The container for the modal slides -->
      <div class="slides"></div>
      <!-- Controls for the borderless lightbox -->
      <h3 class="title"></h3>
      <a class="prev">‹</a>
      <a class="next">›</a>
      <a class="close">×</a>
      <a class="play-pause"></a>
      <ol class="indicator"></ol>
      <!-- The modal dialog, which will be used to wrap the lightbox content -->
      <div class="modal fade">
          <div class="modal-dialog">
              <div class="modal-content">
                  <div class="modal-header">
                      <button type="button" class="close" aria-hidden="true">&times;</button>
                      <h4 class="modal-title"></h4>
                  </div>
                  <div class="modal-body next"></div>
                  <div class="modal-footer">
                      <button type="button" class="btn btn-default pull-left prev">
                          <i class="glyphicon glyphicon-chevron-left"></i>
                          Previous
                      </button>
                      <button type="button" class="btn btn-primary next">
                          Next
                          <i class="glyphicon glyphicon-chevron-right"></i>
                      </button>
                  </div>
              </div>
          </div>
      </div>
  </div>
  <div id="links">
      <a href="images/banana.jpg" title="Banana" data-gallery>
          <img src="images/thumb.jpg" alt="Banana">
      </a>
  </div>
  <script src="bower_components/jquery/dist/jquery.min.js"></script>
  <script src="bower_components/blueimp-gallery/js/jquery.blueimp-gallery.min.js"></script>
  <script src="bower_components/Bootstrap-Image-Gallery/js/bootstrap-image-gallery.min.js"></script>
</body>

它显示香蕉的缩略图,但当我点击它时,页面就变黑了,什么也没有发生。

为什么?我做错了什么?

满足了所有先决条件:

控制台没有错误。

EN

回答 1

Stack Overflow用户

发布于 2016-08-17 13:07:51

啊,看来引导-图像-画廊(或画廊本身)不能与jQuery 3.1.0工作。

jQuery 1.11.3按预期工作。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38997350

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档