image - 星级和微格式

标签 image algorithm rating-system microformats

我的网站上有星级评级,我正在尝试使用微格式。我阅读了 Google 的文档,他们举了一个例子:

<span class="review hreview-aggregate">
  Note globale : <span class="rating">4,4</span> basée sur <span class="count">89
  </span> avis

对不起法语单词。 现在,如果我在网站上显示的不是数字而是星星,我该怎么办? 谢谢

最佳答案

如上所述:

the "type" doesn't matter for hreview-aggregate, as long as they are integers

规范说:

fixed point integer [1.0-5.0], with optional alternate worst (default:1.0) and/or best (default:5.0), also fixed point integers, and explicit average.

Optionally a different integral "worst" value and/or "best" value may be specified to indicate a different range (e.g. 6 from 0-10).

引用资料

关于image - 星级和微格式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15147958/

相关文章:

Android 图像缓存

c++ - 同时最小值和最大值

algorithm - 动态规划任务/计数问题

ruby - 给定数字的阶乘中尾随零的数量 - Ruby

javascript - 星级评定系统仅更新列表中的第一项

css - Rails 3 Ajaxful_rating 样式问题

android - 如何优化分辨率为 1920x1080 的图像,以使其作为背景?

image - 在不改变图像尺寸的情况下减小非常大图像的文件大小

sql - 评级系统的数据库设计

javascript - 使用 ReactJS 动态加载本地镜像