- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我已经开始使用 schema.org 中的模式在我的 HTML 代码中,并准备了一个图像库(下面的片段)。当我将代码粘贴到Google Structured Data Testing Tool时,我没有收到任何错误,因此我认为我使用这些模式的方式是正确的,但如果是的话,我仍然如此。是吗?
<figure itemscope itemtype="http://schema.org/ImageGallery">
<figcaption itemprop="description">The castle through the ages: 1423, 1858, and 1999 respectively.</figcaption>
<figure itemprop="image" itemscope itemtype="http://schema.org/ImageObject">
<figcaption itemprop="caption">Etching. Anonymous, ca. 1423.</figcaption>
<a href="castle1423.jpeg" itemprop="contentURL"> <img src="castle1423_thumb.jpeg" alt="The castle has one tower, and a tall wall around it." itemprop="thumbnailUrl"> </a> </figure>
<figure itemprop="image" itemscope itemtype="http://schema.org/ImageObject">
<figcaption itemprop="caption">Oil-based paint on canvas. Maria Towle, 1858.</figcaption>
<a href="castle185.jpeg" itemprop="contentURL"> <img src="castle1858_thumb.jpeg" alt="The castle now has two towers and two walls." itemprop="thumbnailUrl"> </a> </figure>
<figure itemprop="image" itemscope itemtype="http://schema.org/ImageObject">
<figcaption itemprop="caption">Film photograph. Peter Jankle, 1999.</figcaption>
<a href="castle1999.jpeg" itemprop="contentURL"> <img src="castle1999_thumb.jpeg" alt="The castle lies in ruins, the original tower all that remains in one piece." itemprop="thumbnailUrl"> </a> </figure>
</figure>
最佳答案
image
property的ImageGallery
a) 需要一个 URL,b) 定义为:
URL of an image of the item.
所以你的标记说:“My ImageGallery 可以用三个图像来描述。”;虽然它可能应该说:“My ImageGallery 由三个图像组成。”。
因此,使用image
,您可以指定一个可用于代表整个图库的图像。
对于图库中的每张图像,您可能应该使用 associatedMedia
property (但我不能 100% 确定我是否正确理解了它的定义,“编码”在这里让我感到困惑)。
每个 ImageObject
的标记我觉得不错。
关于semantic-web - Schema.org:将 ImageGallery 与 ImageObject 一起使用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19839463/
我怀疑 schema ImageObject 的正确使用。 我有一张小图片和一个查看大图的链接,但我不知道这三种形式中哪一种是正确的。 最佳答案 删除第一次出现的 itemprop=
为了创建像这里这样的图像 slider ,我必须从某个地方加载图像,但不幸的是我不确定我必须在哪个文件(也许是 component.ts?)中声明 imageObject: Array = [{
我已经开始使用 schema.org 中的模式在我的 HTML 代码中,并准备了一个图像库(下面的片段)。当我将代码粘贴到Google Structured Data Testing Tool时,我没
我已经开始在我的 HTML 代码中使用 schema.org 中的模式,并准备了一个图片库(下面的片段)。当我将我的代码粘贴到 Google Structured Data Testing Tool
我是一名优秀的程序员,十分优秀!