0

再会。我正在尝试实现组织的微格式(hcard),以便 Google 和 Yandex 都能正确地感知它。Yandex 中一切正常,但 Google 的结构化数据验证器显示 pricerange 字段的警告 - 但它已经指示。它甚至写在验证器中......这是一个截图 谷歌结构化数据测试工具警告

这是代码本身:

<div class="vcard">
  <a class="fn org url" href="http://www.commerce.net/">CommerceNet</a>
  <img class="logo-ft photo" src="images/logo-footer.png" alt="Company Logo">
  <div class="adr">
    <span class="type">Work</span>:
    <div class="street-address">169 University Avenue</div>
    <span class="locality">Palo Alto</span>,  
    <abbr class="region" title="California">CA</abbr>&nbsp;&nbsp;
    <span class="postal-code">94301</span>
    <div class="country-name">USA</div>
  </div>
  <div class="tel">
   <span class="type">Work</span> +1-650-289-4040
  </div>
   <div>Pricerange: 
   <span class="pricerange">from $10 to $20</span>
  </div>
</div>

可能是什么问题呢?在此先感谢所有提供帮助的人。

4

1 回答 1

0

org从中删除class="fn org url",或将其替换为任何其他字符串,您的代码段将得到验证。org似乎制造了一种冲突。

于 2020-02-08T22:02:57.247 回答