【发布时间】:2013-01-23 18:47:24
【问题描述】:
最近我第一次不得不使用微格式和微数据,遇到了以下问题。 我需要显示不是 ISO 格式的货币。正如我在微数据中所理解的那样,我可以在“内容”属性中提供实际值:
<span itemprop="price">123</span> <span itemprop="currency" content="RUB">руб.</span>
如果我愿意,可以使用微格式:
<span class="price">123 руб.</span>
我在 Google 结构化数据测试工具中收到“价格字段包含无效字符”警告
如果这样:
<span class="price">123</span> <span class="currency">руб.</span>
然后“货币应采用 ISO 4217 格式”警告。
我怎样才能在微格式中做到这一点?我需要担心所有这些警告吗?
【问题讨论】:
标签: html microdata microformats