使用微数据语义声明itemprop="image"用于itemtype=".../Person"的旧方法如下:
<section itemscope itemtype="http://data-vocabulary.org/Person">
<h1 itemprop="name">Andy Runie</h1>
<p>
<img itemprop="photo" src="http://www.example.com/photo.jpg">
</p>
</section>很简单。
显然(按照http://support.google.com/webmasters/bin/answer.py?hl=en&answer=146646),前面的方法已被废弃,在HTML5微数据中使用的“新”模式是Schema.org。
这是取自http://support.google.com/webmasters/bin/answer.py?hl=en&answer=146646的

Schema.org文档显示"Thing“是"Person”的父级
和
itemprop="image"现在在“Thing”之下。而在itemprop="photo"被称为“Person”之前。
根据http://schema.org/docs/gs.html (2a )。schema.org类型和属性)我们发现Person继承了Thing.
问题:使用这个新标准的,我可以简单地使用以下方法在中适当地显示‘isitemtype=’http://schema.org/Person"`?
<section itemscope itemtype="http://schema.org/Person">
<h1 itemprop="name">Andy Runie</h1>
<p>
<img itemprop="image" src="http://www.example.com/photo.jpg">
</p>
</section>发布于 2013-05-16 06:53:03
是的你是对的。
如果导航到http://schema.org/Person,可以使用所有提到的属性来描述一个人,其中包括来自物物的所有属性,如图像、名称、描述和url。
发布于 2013-05-16 15:20:39
绝对一点儿没错。好吧,实际上,在schema.org/Person页面下面有一个回答你问题的例子。
<div itemscope itemtype="http://schema.org/Person">
<span itemprop="name">Jane Doe</span>
<img src="janedoe.jpg" itemprop="image" />
...
</div>发布于 2014-02-07 11:49:22
在这里,您可以找到另一个使用Schema.org的示例,这一次使用的是itemprop=“职称”和itemprop="url“:示例
https://stackoverflow.com/questions/16572414
复制相似问题