2011-12-15 53 views
0

我想与Zend farmework headMeta加入(问题是:如何打造 “itemprop”): - 谷歌发电机+ HTML5在http://www.google.com/webmasters/+1/button/如何通过Zend框架添加schema.org特性?

<meta itemprop="name" content="Title of your content"> 
<meta itemprop="description" content="This would be a description of the content your users are sharing"> 
<meta itemprop="image" content="ourimage.jpg"> 

编辑检查: 我想这样做,对于谷歌加: http://www.google.com/webmasters/+1/button/

感谢

回答

-1

我看到你标记你的问题为 “HTML5”。两天前我有类似的问题。您不能在HTML5中使用“itemprop”。相反,你可以像这样使用meta“name”:

//这里$ key就像“描述和值 - >”标题内容“ $ this-> headMeta() - > appendName($ key, $值);

如果要为Facebook这是为了去为HTML5验证不要把很多错误的方式来做到这一点

+0

谢谢,请看到我的编辑谷歌发生器生成的代码我。问题当包括HTML5 – Yosef 2011-12-15 18:06:16