我在一个网站上有一个照片库:http://www.firstaidlifeline.co.uk/gallery/。但是,网站上没有显示任何图像。
我认为问题在于CSS (或JS),因为HTML在我看来很好。
HTML看起来如下:
<div id="flickrGal0" class="justified-gallery">
<a href="https://farm6.staticflickr.com/5813/22733190139_f81bfe7a9b_b.jpg" rel="flickrGal0" title="20130213_153547"><img alt="20130213_153547" src="https://farm6.static.flickr.com/5813/22733190139_f81bfe7a9b_m.jpg" data-safe-src="https://farm6.static.flickr.com/5813/22733190139_f81bfe7a9b_m.jpg">
<div class="caption">
<div class="photo-title photo-title-with-desc">20130213_153547</div>
</div>
</a>
...
...
...
</div>html本身在其他地方起作用。因此,我认为在JS或CSS中的某个地方存在冲突,但是,我不确定确切的位置。
发布于 2015-12-03 23:15:09
我查了源代码和库。justifiedGallery.js文件未加载到页面中。调用justifiedGallery()的函数justifiedGallery()没有被调用;这解释了为什么控制台不会触发任何错误。在justifiedGallery.js中加载<head>
放
jQuery(function(){
fjgwppInit_flickrGal0();
};在你页面的某个地方。
编辑
看起来图库是由一个插件生成的,我想你应该播放这些设置,否则插件可能会被损坏。插件主页
https://stackoverflow.com/questions/34077904
复制相似问题