Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/security/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何为谷歌的星级评分编制索引?_Html_Css_Seo_Google Webmaster Tools_Google Crawlers - Fatal编程技术网

Html 如何为谷歌的星级评分编制索引?

Html 如何为谷歌的星级评分编制索引?,html,css,seo,google-webmaster-tools,google-crawlers,Html,Css,Seo,Google Webmaster Tools,Google Crawlers,这是我网站上的HTML标记,它在css的帮助下显示星级 现在,我已经阅读了全文,但仍然无法理解如何更改标记。我不愿意在css中进行更改,我没有那么多可用的数据,因此无法按照google文档中提到的microdata/RDF创建标记 我能做的最小更改是什么,以便谷歌了解该项目的总评分 <div class="store__rating"> <meta content="5" itemprop="rating"> <div class="rateStars"

这是我网站上的HTML标记,它在css的帮助下显示星级

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

我能做的最小更改是什么,以便谷歌了解该项目的总评分

<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>

2回顾

我最后就是这样做的,只需粘贴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>

2评论