小编Jan*_*ath的帖子

lightbox2无法在灯箱中打开图像

我尝试将Lightbox2集成到现有网站中.

主编:

<head>
 <link rel="stylesheet" media="screen" type="text/css" href="/css/style.css">
 <link rel="stylesheet" type="text/css" href="/css/lightbox.css">

 <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
 <script type="text/javascript" src="/js/lightbox.js">
</head>
Run Code Online (Sandbox Code Playgroud)

图像代码:

<div class="image-wrapper">     
 <a href="/img/projects/folder/image_big.jpg" data-lightbox="lightboxImage">
  <img src="/img/projects/folder/image_thumbnail.jpg" alt=" " class="project-image">
 </a>
</div>
Run Code Online (Sandbox Code Playgroud)

我的问题是,当我点击缩略图时,它只会在空白的浏览器窗口中打开大图像,而不是在灯箱中打开它.

我已经检查了路径.浏览器控制台显示没有错误.

我想我错过了什么.但我不知道它会是什么.

会感激一些帮助.谢谢!

lightbox lightbox2

3
推荐指数
1
解决办法
1815
查看次数

标签 统计

lightbox ×1

lightbox2 ×1