【发布时间】:2016-11-30 16:39:09
【问题描述】:
我的页面包含多个具有相同属性(名称、位置、描述等)的 Schema.org 事件。我已经弄清楚如何通过执行以下操作来处理位置:
<div itemscope itemtype="http://schema.org/Event">
…
<meta itemprop="location" itemscope itemtype="http://schema.org/Place" itemref="venue-place" />
</div>
<span id="venue-place">
<a href="http://www.example.com/" itemprop="url">
<span itemprop="name">Crystal Ballroom</span>
</a>
<span itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<span itemprop="streetAddress">1332 W Burnside St.</span>
<span itemprop="addressLocality">Portland</span>,
<span itemprop="addressRegion">OR</span>
<span itemprop="postalCode">97209</span>
</span>
</span>
但是,对于事件的描述,我无法弄清楚如何做到这一点。我做了这样的事情,这使得谷歌结构化数据测试工具的事件中出现了一个空的描述:
<div itemscope itemtype="http://schema.org/Event">
…
<meta itemprop="description" itemscope itemref="event-summary" />
</div>
<div id="event-summary">
This is the description text.
</div>
我做错了什么?
【问题讨论】: