- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在我的网站上使用微数据,特别是 LocalBusiness 架构。
我也在读这个:schema.org: Multiple opening hours on same day
但我想要的是每天定义开放时间是什么,因为它们可能会有很大差异。
我目前在其他示例中看到的是:
<time itemprop="openingHours" datetime="Tu-Fr 10:00-14:00">XYZ</time>
<time itemprop="openingHours" datetime="Tu 10:00-14:00">XYZ</time>
<time itemprop="openingHours" datetime="Fr 11:00-14:00">XYZ</time>
<meta itemprop="openingHours" content="Tu 10:00-14:00">XYZ
<meta itemprop="openingHours" content="FR 11:00-14:00">XYZ
最佳答案
LocalBusiness示例已更新并显示了几天内多次的示例。
<div itemscope itemtype="http://schema.org/Restaurant">
<span itemprop="name">GreatFood</span>
...
Hours:
<meta itemprop="openingHours" content="Mo-Sa 11:00-14:30">Mon-Sat 11am - 2:30pm
<meta itemprop="openingHours" content="Mo-Th 17:00-21:30">Mon-Thu 5pm - 9:30pm
<meta itemprop="openingHours" content="Fr-Sa 17:00-22:00">Fri-Sat 5pm - 10:00pm
</div>
openingHours
的描述:
The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.
- Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su.
- Times are specified using 24:00 time. For example, 3pm is specified as 15:00.
- Here is an example: Tuesdays and Thursdays 4-8pm.
- If a business is open 7 days a week, then it can be specified as Monday through Sunday, all day.
openingHours
description 使用具有 datetime 属性的 time 元素,每周时间范围不是有效值,因此使用 meta 元素可能更可取。
openingHoursSpecification
属性(property)。它比
openingHours
更罗嗦属性(property)。这根手杖有点像这样使用:
<div itemscope itemtype="http://schema.org/Restaurant">
<span itemprop="name">GreatFood</span>
...
Hours:
<div itemprop="openingHoursSpecification" itemscope
itemtype="http://schema.org/OpeningHoursSpecification">
<meta itemprop="description" content="Lunch Hours">
<link itemprop="dayOfWeek" href="http://purl.org/goodrelations/v1#Monday">
<link itemprop="dayOfWeek" href="http://purl.org/goodrelations/v1#Tuesday">
<link itemprop="dayOfWeek" href="http://purl.org/goodrelations/v1#Wednesday">
<link itemprop="dayOfWeek" href="http://purl.org/goodrelations/v1#Thursday">
<link itemprop="dayOfWeek" href="http://purl.org/goodrelations/v1#Friday">
<link itemprop="dayOfWeek" href="http://purl.org/goodrelations/v1#Saturday">
Mon-Sat
<time itemprop="opens" datetime="11:00">11am</time> -
<time itemprop="closes" datetime="14:30">2:30pm</time>
</div>
<div itemprop="openingHoursSpecification" itemscope
itemtype="http://schema.org/OpeningHoursSpecification">
<meta itemprop="description" content="Supper Hours">
<link itemprop="dayOfWeek" href="http://purl.org/goodrelations/v1#Monday">
<link itemprop="dayOfWeek" href="http://purl.org/goodrelations/v1#Tuesday">
<link itemprop="dayOfWeek" href="http://purl.org/goodrelations/v1#Wednesday">
<link itemprop="dayOfWeek" href="http://purl.org/goodrelations/v1#Thursday">
Mon-Thu
<time itemprop="opens" datetime="17:00">5pm</time> -
<time itemprop="closes" datetime="21:30">9:30pm</time>
</div>
<div itemprop="openingHoursSpecification" itemscope
itemtype="http://schema.org/OpeningHoursSpecification">
<meta itemprop="description" content="Weekend Supper Hours">
<link itemprop="dayOfWeek" href="http://purl.org/goodrelations/v1#Friday">
<link itemprop="dayOfWeek" href="http://purl.org/goodrelations/v1#Saturday">
Fri-Sat
<time itemprop="opens" datetime="17:00">5pm</time> -
<time itemprop="closes" datetime="22:00">10:00pm</time>
</div>
</div>
关于microdata - 每天使用 schema.org 的不同(类型)开放时间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17058982/
我在使用 MicroFormats 和确定要使用的项目类型(产品或优惠)时遇到问题。我已经使用 Offer 向我们销售的各种产品添加数据(每页 1 个)。尽管这在 Google 结构化数据测试工具中得
我收到“错误:schema.org 的微数据不完整”。使用 Google 的测试工具 (http://www.google.com/webmasters/tools/richsnippets?q=up
我对标记格式 Microdata、Microformats 和 RDFa 进行了大量研究。谷歌推荐微数据而不是其他两个标记,我想知道为什么。阅读大量文档并研究这些标记让我比开始阅读之前更加无能为力。有
假设我有这个有效的微数据增强 HTML 片段: Example (我已经用谷歌的结构化数据测试工具对此进行了测试。) 现在我想添加一个在 schema.org 中不可用但在不同词汇中的属性(在
我是法国人,我正在开发一个租房网站。我想添加有关出租空置报价(房屋、别墅、公寓...)的微数据,但我不知道要使用哪种项目类型。优惠、产品或其他? http://schema.org/Offer htt
我想将 schema.org 标记添加到产品页面。所以基本上所有的页面都被包裹在一个: 页面显示我标记的产品名称 itemprop="name" ,它显示了我用 itemprop="image" 标记
对于网页的其他区域,标记起来很简单;即导航元素、页眉、页脚、侧边栏 mainContentOfPage 并非如此;我已经看到了许多不同的实现方式,最近一次(我发现这是最奇怪的)在 schema.org
我需要一些帮助,将一些丰富的片段添加到我的网站 我按照 schema.org 上给出的说明在此处插入了评论微数据 http://schema.org/docs/gs.html#advanced_mis
我正在为一家小商店建立一个网站,并希望实现 schema.org-microdata-markup。 “问题”:商店从周二到周五营业——从 10:00 到 14:00 和 这些天从 16:30 到 2
我收到“警告:schema.org 的微数据不完整。”使用 Google 结构化数据测试工具验证我的页面时。 我定义了这些属性: http://www.google.com/webmasters/to
我正在尝试将 schema.org 元标记添加到我的产品页面 - 提供优惠和评级等。 下面的代码工作正常,我可以用 google rich snippet 工具对其进行测试。
我正在尝试将 schema.org 元标记添加到我的产品页面 - 提供优惠和评级等。 下面的代码工作正常,我可以用 google rich snippet 工具对其进行测试。
在产品中嵌套具有 priceSpecification 的报价会在 Google Rich Snippets 测试工具中引发不完整的微数据警告。 这个 1984 Vintage Select
对于市场,架构数据变得更加困惑。您不仅要代表您的组织,而且还要担心供应商的组织。将所有这些数据放在一页上是不好的做法吗?产品页面是否应该在元数据中只包含产品信息,而本地商家只包含本地商家详细信息? 市
我如何使用 schema.org 定义服务? 例如, 一个虫害防治业务:“白蚁防治”-> 我认为它不是一个产品(http://schema.org/Product) 我应该用什么来定义它? 最佳答案
我对 Microdata/Schema.org 还很陌生,所以仍在摸索中。既然我明白这都是关于将内容放置在关系和引用中,那么将公司的整个网页放在一个itemscope中是好还是坏主意?将其添加到 bo
示例页面是: http://www.uswitch.com/mobiles/deals/apple_iphone_4s/ 此页面汇总了特定手机的所有契约(Contract)交易,我希望在行上添加 sc
Microdata 允许具有 itemprop 但不具有父 itemscope 的元素,只要它们由页面上某处的 itemref 引用即可。 (请参阅我的问题 Is 'itemprop' without
我尝试发布一小段代码并尝试在 Google 结构化数据测试工具中对此进行测试,但没有显示丰富的代码段。 这是我的意思的截图: 这是我使用的一段代码,我直接从 Schema.org 获取: P
我在看 http://schema.org/OpeningHoursSpecification地点(及更多)的微数据模式。我对用于 DayOfWeek 的值有点困惑. 这两个类(OpeningHour
我是一名优秀的程序员,十分优秀!