html PhotoSwipe - 结构

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html PhotoSwipe - 结构相关的知识,希望对你有一定的参考价值。

<div id="gallery" class="gallery" itemscope itemtype="http://schema.org/ImageGallery">
  <figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject">
    <a href="https://unsplash.it/1200/900/?image=695" data-caption="Sunset in the wheat field<br><em class='text-muted'>© Jordan McQueen</em>" data-width="1200" data-height="900" itemprop="contentUrl">
      <img src="https://unsplash.it/400/300/?image=695" itemprop="thumbnail" alt="Image description">
    </a>
  </figure>
  <figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject">
    <a href="https://unsplash.it/1200/900/?image=675" data-caption="Mysterious ocean<br><em class='text-muted'>© Barn Images</em>" data-width="1200" data-height="900" itemprop="contentUrl">
      <img src="https://unsplash.it/400/300/?image=675" itemprop="thumbnail" alt="Image description">
    </a>
  </figure>
  ...
</div>

以上是关于html PhotoSwipe - 结构的主要内容,如果未能解决你的问题,请参考以下文章

html photoswipe

html Miva - 产品PhotoSwipe Gallery

求助大神...PhotoSwipe按钮不显示,前端用的easyui

JSPM + TypeScript + PhotoSwipe:如何成功导入和使用库?

PhotoSwipe:编辑 parseThumbnailElements 函数以解析附加标记元素

移动端图片放大滑动查看-插件photoswipe的使用