【问题标题】:Base Tag in Structured Testing Tool结构化测试工具中的基本标签
【发布时间】:2016-12-23 04:38:26
【问题描述】:

如果我放了

<head>
<base href="http://www.domain.com" />
<meta property="og:type" content="article"/>
<meta property="og:title" content="Title"/>
<meta property="og:description" content="description"/>
</head>

Structured Testing Tool 中显示以下错误消息:
未指定类型
如果我删除&lt;base href="http://www.domain.com" /&gt;这行就好了。
我需要&lt;base&gt; 标签。
有什么问题或者我可以做些什么来验证基本标签?

【问题讨论】:

    标签: html facebook-opengraph meta-tags google-rich-snippets structured-data


    【解决方案1】:

    我发现了问题。

    • 如果我把我网站的源代码放在测试工具中,错误 上面的消息来了。
    • 如果我使用该工具获取原始 URL, 一切都很好。

    【讨论】:

      【解决方案2】:

      你必须像下面这样改变head标签:

      <head typeof="og:article">
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-08-26
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2010-09-20
        相关资源
        最近更新 更多