【发布时间】:2014-11-11 21:05:06
【问题描述】:
我想为我的网站实现面包屑,但我不想在我的页面上为它创建任何可见标签。我想过使用元标记,但由于它们没有 href 属性,它们不能包含 itemprop="url" 属性。以下是我正在使用的代码:
<div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<meta href="http://www.example.com/dresses" itemprop="url">
<meta itemprop="title" content="Dresses">
</div>
<div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<meta href="http://www.example.com/dresses/real" itemprop="url">
<meta itemprop="title" content="Real Dresses">
</div>
<div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<meta href="http://www.example.com/clothes/dresses/real/green" itemprop="url">
<meta itemprop="title" content="Real Green Dresses">
</div>
有没有什么变通方法可以实现这一点?
【问题讨论】:
标签: breadcrumbs microdata google-rich-snippets