要在 SERP 中显示面包屑,请像这样对 schema.org 标记进行编码。注意 div 嵌套和“child”属性:
<div class="breadcrumb" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<span class="breadcrumb-lead">YOU ARE HERE:</span>
<a title="Go to %title%." href="%link%" class="%type%" itemprop="url">
<span itemprop="title">Homepage</span></a>
<div itemprop="child" itemscope itemtype="http://data-vocabulary.org/Breadcrumb" style="display: inline;">
<a title="Go to %title%." href="%link%" class="%type%" itemprop="url">
<span itemprop="title">Category One</span></a>
</div>
<div itemprop="child" itemscope itemtype="http://data-vocabulary.org/Breadcrumb" style="display: inline;">
<a title="Go to %title%." href="%link%" class="%type%" itemprop="url">
<span itemprop="title">Category Two</span></a>
</div>
</div>
这在 Google 结构化数据测试工具中得到验证:
http://www.google.com/webmasters/tools/richsnippets
很多关于面包屑的 schema.org 标记的文档都是不正确的。关于这个有几个线程。以上是我的工作解决方案,希望对您有所帮助。