【问题标题】:do hCard property elements have to be children or can they be descendants?hCard 属性元素必须是子元素还是子元素?
【发布时间】:2012-07-10 18:09:16
【问题描述】:

基本上我想知道这作为 hcard 是否仍然有效。

<div class="vcard">
<h2>Phone Number: <span class="tel">800-288-3875</span></h2>
</div>

谢谢!

【问题讨论】:

    标签: children microformats descendant hcard


    【解决方案1】:

    hCard 属性不需要是直接后代,它们可以嵌套多层(如您的示例以及 Microformats wiki 上的许多示例,例如,请参阅 hCard authoring tips page)。

    但是,您示例中的 hCard 不完整,因为它缺少一些 required properties,因此某些解析器可能无法识别它。

    【讨论】:

      猜你喜欢
      • 2021-12-13
      • 1970-01-01
      • 2022-12-06
      • 1970-01-01
      • 2019-09-03
      • 2022-01-26
      • 1970-01-01
      • 1970-01-01
      • 2011-04-14
      相关资源
      最近更新 更多