我可以为 Schema.org 中的同一产品使用不同的产品图片吗?
Can I use a different product image for the same product in Schema.org?
如果我有 categories.html 页面链接到 product.html 页面,
是否可以将 categories.html 中的产品小图标记为产品的 Schema.org image
,即使有更详细的产品图像在 product.html 页?
(我正在使用微数据。)
是的,应该没问题。
请注意,您仍然可以提供大图而不显示它。这可以通过 link
元素实现,例如:
<article itemscope itemtype="http://schema.org/Product">
<img src="small-image.png" alt="…" />
<link itemprop="image" href="big-image.png" />
</article>
如果你想真正表达,你可以提供一个 ImageObject
value and use its thumbnail
属性:
<article itemscope itemtype="http://schema.org/Product">
<div itemprop="image" itemscope itemtype="http://schema.org/ImageObject">
<img itemprop="thumbnail" src="small-image.png" alt="…" />
<link itemprop="contentUrl" href="big-image.png" />
</div>
</article>
如果我有 categories.html 页面链接到 product.html 页面,
是否可以将 categories.html 中的产品小图标记为产品的 Schema.org image
,即使有更详细的产品图像在 product.html 页?
(我正在使用微数据。)
是的,应该没问题。
请注意,您仍然可以提供大图而不显示它。这可以通过 link
元素实现,例如:
<article itemscope itemtype="http://schema.org/Product">
<img src="small-image.png" alt="…" />
<link itemprop="image" href="big-image.png" />
</article>
如果你想真正表达,你可以提供一个 ImageObject
value and use its thumbnail
属性:
<article itemscope itemtype="http://schema.org/Product">
<div itemprop="image" itemscope itemtype="http://schema.org/ImageObject">
<img itemprop="thumbnail" src="small-image.png" alt="…" />
<link itemprop="contentUrl" href="big-image.png" />
</div>
</article>