如何在 google 中索引星级?

How to index star rating in google?

这是我网站上的 HTML 标记,它在一些 css.

的帮助下显示星级

现在我已经阅读了整个 google document 但我仍然无法理解如何更改我的标记。我不愿意在 css 中进行更改,而且我没有那么多可用数据,因此无法根据 google 文档中提到的 microdata/RDF 创建标记。

要让 google 理解该项目的总评分,我可以做的最小更改是多少?

<div class="store__rating">
   <meta content="5" itemprop="rating">
   <div class="rateStars"><span class="filled_green"><i class="icon-star"></i></span>
      <span class="filled_green"><i class="icon-star"></i></span>
      <span class="filled_green"><i class="icon-star"></i></span>
      <span class="filled_green"><i class="icon-star"></i></span>
      <span class="filled_green"><i class="icon-star"></i></span>
      <span class="reviewCount">
      2Reviews
      </span>
   </div>
</div>

我最终这样做了,here is the testing tool,只需粘贴 HTML 并验证

<div class="store__rating" typeof="v:Review-aggregate" xmlns:v="http://rdf.data-vocabulary.org/#">
   <span rel="v:rating">
       <span typeof="v:Rating">
         <span content="5" property="v:average"></span>
         <span content="5" property="v:best"></span>
       </span>
   </span>
   <span content="2" property="v:count"></span>
   <div class="rateStars"><span class="filled_green"><i class="icon-star"></i></span>
      <span class="filled_green"><i class="icon-star"></i></span>
      <span class="filled_green"><i class="icon-star"></i></span>
      <span class="filled_green"><i class="icon-star"></i></span>
      <span class="filled_green"><i class="icon-star"></i></span>
      <span class="reviewCount">
      2 Reviews
      </span>
   </div>
</div>