gpt4 book ai didi

microdata - 产品的丰富片段/微数据 : Error: Incomplete microdata with schema. 组织

转载 作者:行者123 更新时间:2023-12-01 10:52:04 25 4
gpt4 key购买 nike

我收到“错误:schema.org 的微数据不完整”。使用 Google 的测试工具 (http://www.google.com/webmasters/tools/richsnippets?q=uploaded:8004e2bf685980a2f0ffadd5c52b2d5f) 测试标记时的消息。

我已经尽可能地简化了我的代码,我是否缺少某种“必需”类型来摆脱这个错误?这是目前我的产品页面上唯一可用的数据。

提前致谢!

<div itemscope itemtype="http://schema.org/Product" id="productdetail">
<img itemprop="image" src="testimage.jpg" width="300" height="300" name="multi" alt="Test" />
<h1 itemprop="name">Product Name</h1>
<span itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="convertprice">
<span itemprop="price">£2.00</span>
</span>
<p itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="stock"><link itemprop="availability" href="http://schema.org/InStock" content="In Stock" />In Stock</p>
<div class="tab_info" id="tab1">
<p itemprop="description" class="invtdesc2">This is where the product description will be!</p>
</div>

最佳答案

似乎触发了这个神秘错误,因为您错过了第二次报价的价格。以下标记对我来说没有错误:

<div itemscope itemtype="http://schema.org/Product" id="productdetail">
<img itemprop="image" src="testimage.jpg" width="300" height="300" name="multi" alt="Test" />
<h1 itemprop="name">Product Name</h1>
<span itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="convertprice">
<span itemprop="price">£2.00</span>
</span>
<p itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="stock">
<span itemprop="price">£2.00</span><link itemprop="availability" href="http://schema.org/InStock" content="In Stock" />In Stock</p>
<div class="tab_info" id="tab1">
<p itemprop="description" class="invtdesc2">This is where the product description will be!</p>
</div>
</div>

我们正在努力提供信息更丰富的错误消息。感谢您指出这一点。

关于microdata - 产品的丰富片段/微数据 : Error: Incomplete microdata with schema. 组织,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17955572/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com