- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我正在更新食谱页面上的丰富网页摘要以及在 Google 结构化数据测试工具 (https://developers.google.com/structured-data/testing-tool/) 中测试结果时。由于面包屑在食谱的范围内,我得到了一些错误。
这是阻塞错误吗?决议是什么?面包屑部分周围的一些额外标记?
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body class="" itemscope itemtype="http://schema.org/Recipe">
<h1><span itemprop="name">Baked Cheesy Dippers with Nacho Cheese Cheddar</span></h1>
<div class="extraPropeties">
<span itemprop="description">A fun way to serve chicken dippers and keep kids interested</span>
<span itemprop="recipeYield">4 Persons</span>
<span itemprop="nutrition" itemscope itemtype="http://schema.org/NutritionInformation">
<span itemprop="calories">11</span>
<span itemprop="fatContent">31</span>
<span itemprop="proteinContent">41</span>
<span itemprop="carbohydrateContent">51</span>
<span itemprop="fiberContent">61</span>
<span itemprop="cholesterolContent">71</span>
</span>
</div>
<div class="part2">
<div class="shortInfo">
<div class="shortInfoTile">
<div class="key">Preparation time</div>
<div class="value">
<span datetime="PT10M" itemprop="prepTime">10</span><span class="unit">'</span>
</div>
</div>
<div class="shortInfoTile">
<div class="key">Cooking time</div>
<div class="value">
<span datetime="PT20M" itemprop="cookTime">20</span><span class="unit">'</span>
</div>
</div>
<div class="shortInfoTile">
<div class="key">Nr of servings</div>
<div class="value">
<span>4</span>
</div>
</div>
</div>
</div>
<div class="breadcrumb">
<div class="wrapper">
<div class="typoMinusR">
<span class="word" id='bc_0' itemscope itemtype='http://data-vocabulary.org/Breadcrumb' itemref='bc_1'>
<span class="first"></span>
<a href="/" itemprop="url">
<span itemprop="title">Home</span>
</a>
<span class="last"></span>
</span>
<span class="word" id='bc_1' itemscope itemtype='http://data-vocabulary.org/Breadcrumb' itemprop='child' itemref='bc_2'>
<span class="first"></span>
<a href="/recipes" itemprop="url">
<span itemprop="title">Recipes</span>
</a>
<span class="last"></span>
</span>
<span class="word" id='bc_2' itemscope itemtype='http://data-vocabulary.org/Breadcrumb' itemprop='child'>
<span class="first"></span>
<a href="/recipes/baked-cheesy-dippers-with-nachos-beans-cheddar" itemprop="url">
<span itemprop="title">Baked-Cheesy-Dippers-with-Nacho-Bean-Cheddar</span>
</a>
<span class="last"></span>
</span>
</div>
</div>
</div>
</body>
</html>
</html>
最佳答案
在 http://schema.org/Recipe
项中嵌套 http://data-vocabulary.org/Breadcrumb
项不是问题。微数据不关心 HTML5 嵌套,除非使用属性 (itemprop
)。
您的问题是您的第二个和第三个面包屑项(具有 child
属性)未嵌套在 http://data-vocabulary.org/Breadcrumb
项,但在 http://schema.org/Recipe
项中。这样他们就与食谱相关联了,这当然是不正确的。
因此解决方案是嵌套面包屑项,而不是使用 itemref
。
关于seo - 食谱中的丰富片段面包屑,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31202532/
我会发布我所有的代码。目前我有一个带有适配器和生成 ListView 的数据源的 Activity 。然后,您选择菜谱,它使用单独的适配器将其发送到另一个 Activity 。我希望此 Activit
最近工作中需要 python 命令行实用程序,但我没有编写 cli 的经验。无论如何,我仍然必须将它们弹出。 我最大的障碍是这些程序的结构。此外,获取和验证用户输入的方法。我一直以非常长的 while
假设我有一个食谱数据库,我想根据我拥有的成分搜索它们。 应该有 3 个表: 食谱(rid,rname), 配料(iid,iname), 关系(rid,iid) 接下来,假设我有一个“ toast ”食
我正在写一个自定义yocto recipe应该从.whl安装一个python包文件。 我尝试使用包含以下内容的食谱: inherit pypi setuptools PYPI_SRC_URI="htt
我想弄清楚如何创建一个从 git 下载并使用 make 文件构建的食谱。例如: g3logger (git https://github.com/KjellKod/g3log.git) 食谱“bb”文
在 Scala 食谱中:13.3。如何在 Actor 之间进行交流我看到了这个 class Ping(pong: ActorRef) extends Actor { // OMG - ActorRef
我可以在食谱中看到以下内容 task "create-dirs" set.allSource.srcDirs.each {it.mkdirs()} } } 关于其他插件的 G
C 文件 int main() { printf("Hello, World!\n"); return 0; } helloworld.bb DESCRIPTION =
关闭。这个问题需要更多focused .它目前不接受答案。 想改进这个问题吗? 更新问题,使其只关注一个问题 editing this post . 关闭 6 年前。 Improve this qu
当我使用/bin/sh 时,我可以简单地通过回显来通过 bash 发出命令 vagrant@vagrant:~$ sh $ echo 'ls' | bash some.sh 但是当我尝试使用这个命令时
我是一名优秀的程序员,十分优秀!