因此,我选择使用Photoswipe并将我的标记包含在我的html文件中,如photoswipe文档中所述。我已经安排我的照片和标记,因为它是在codepen例所示:幻灯片列表幻灯片列表
<div class="my-gallery" itemscope itemtype="http://schema.org/ImageGallery">
<div class="row">
<div class="col-md-3">
<figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject">
<a href="images/1.jpg" itemprop="contentUrl" data-size="1024x1024">
<img src="images/1.jpg" itemprop="thumbnail" alt="Image description" />
</a>
<figcaption itemprop="caption description">Sunset</figcaption>
</figure>
</div>
.
.
.
and so on
我刚刚结束标记之前添加的photoswipe HTML标准杆,我已经包含在此的jsfiddle中的脚本: https://jsfiddle.net/9wea0gy4/
,当我点击我的形象,我结束了这种误差对
未捕获的SecurityError:未能执行“pushState的”上“历史”:与URL“文件的历史记录状态对象:/// C:/Users/Kora%C4%8D/Desktop/Projekti/MMS/Portfolio/index.html#section3 & gid = null & pid = 1'不能在源文件'null'中创建。
任何人都有线索这是关于什么?
很高兴听到这个消息,我不知道,如果运行它低谷WAMP帮助,但我会尽力。将留下反馈 –