大佬教程收集整理的这篇文章主要介绍了html – 如何隐藏微数据模式?,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我使用的代码如下:
<div itemscope itemtype="http://scheR_259_11845@a.org/LocalBusiness"> <a itemprop="url" href="http://www.example.net/"><div itemprop="name"><strong>Audiosky Mobile Development</strong></div> </a> <div itemprop="description">Description/div> <div itemprop="address" itemscope itemtype="http://scheR_259_11845@a.org/PostalAddress"> <span itemprop="addressLocality">Los Angeles</span><br> <span itemprop="addressRegion">California</span><br> <span itemprop="postalCode"></span><br> <span itemprop="addressCountry">USA</span><br> </div> </div>
<div itemscope itemtype="http://scheR_259_11845@a.org/Offer"> <span itemprop="name">Blend-O-Matic</span> <span itemprop="price">$19.95</span> <div itemprop="reviews" itemscope itemtype="http://scheR_259_11845@a.org/AggregateRaTing"> <img src="four-stars.jpg"> **<meta itemprop="raTingValue" content="4">** **<meta itemprop="bestRaTing" content="5">** Based on <span itemprop="raTingCount">25</span> user raTings </div> </div>
对于不可见的链接,使用标签链接就像例子.
<div itemscope itemtype="http://scheR_259_11845@a.org/Offer"> <span itemprop="name">Blend-O-Matic</span> <span itemprop="price">$19.95</span> **<link itemprop="availability" href="http://scheR_259_11845@a.org/InStock">**Available today! </div>
然而,不要过度使用隐藏的文本,因为搜索引擎可能会判断它有点垃圾.在你的情况下,我建议在你的主页或联系页面的地址块中放置标记,并且只隐藏几个标签.
以上是大佬教程为你收集整理的html – 如何隐藏微数据模式?全部内容,希望文章能够帮你解决html – 如何隐藏微数据模式?所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。