<bdo id='DZ9Z0'></bdo><ul id='DZ9Z0'></ul>

    <tfoot id='DZ9Z0'></tfoot>
    <legend id='DZ9Z0'><style id='DZ9Z0'><dir id='DZ9Z0'><q id='DZ9Z0'></q></dir></style></legend>

    1. <small id='DZ9Z0'></small><noframes id='DZ9Z0'>

      <i id='DZ9Z0'><tr id='DZ9Z0'><dt id='DZ9Z0'><q id='DZ9Z0'><span id='DZ9Z0'><b id='DZ9Z0'><form id='DZ9Z0'><ins id='DZ9Z0'></ins><ul id='DZ9Z0'></ul><sub id='DZ9Z0'></sub></form><legend id='DZ9Z0'></legend><bdo id='DZ9Z0'><pre id='DZ9Z0'><center id='DZ9Z0'></center></pre></bdo></b><th id='DZ9Z0'></th></span></q></dt></tr></i><div id='DZ9Z0'><tfoot id='DZ9Z0'></tfoot><dl id='DZ9Z0'><fieldset id='DZ9Z0'></fieldset></dl></div>
    2. 将元描述和 Open Graph Protocol 描述合二为一

      时间:2023-07-31

        <tbody id='pY2lo'></tbody>
    3. <small id='pY2lo'></small><noframes id='pY2lo'>

    4. <legend id='pY2lo'><style id='pY2lo'><dir id='pY2lo'><q id='pY2lo'></q></dir></style></legend>
      <i id='pY2lo'><tr id='pY2lo'><dt id='pY2lo'><q id='pY2lo'><span id='pY2lo'><b id='pY2lo'><form id='pY2lo'><ins id='pY2lo'></ins><ul id='pY2lo'></ul><sub id='pY2lo'></sub></form><legend id='pY2lo'></legend><bdo id='pY2lo'><pre id='pY2lo'><center id='pY2lo'></center></pre></bdo></b><th id='pY2lo'></th></span></q></dt></tr></i><div id='pY2lo'><tfoot id='pY2lo'></tfoot><dl id='pY2lo'><fieldset id='pY2lo'></fieldset></dl></div>

      <tfoot id='pY2lo'></tfoot>
        <bdo id='pY2lo'></bdo><ul id='pY2lo'></ul>

                本文介绍了将元描述和 Open Graph Protocol 描述合二为一的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                是否可以将元描述和开放图协议描述结合起来......

                Is it possible to combine the meta description and Open Graph Protocol description…

                <meta name="description" content="My meta description copy." />
                <meta property="og:description" content="My meta description copy." />
                

                …当它们包含相同的内容时合二为一?

                …into one when they contain the same content?

                <meta name="description" property="og:description" content="My meta description copy." />
                

                推荐答案

                是的,你可以把它们结合起来.为了测试它,我制作了下面的简单 HTML 页面,将其上传到服务器,然后通过 Facebook 的 URL Linter.它没有报告与描述标签相关的警告(仅关于缺少的 og:image 标签)并正确读取了描述.

                Yes, you can combine them. To test it, I made the simple HTML page below, uploaded it to a server, then ran the page through Facebook's URL Linter. It reported no warnings related to the description tag (only about the missing og:image tag) and correctly read the description.

                <!doctype html>
                <html>
                    <head>
                        <meta name="description" property="og:description" content="My meta description copy." />
                        <meta property="og:title" content="Test page" />
                        <meta property="og:type" content="article" />
                        <meta property="og:url" content="http://example.com/ogtest.html" />
                    </head>
                    <body>
                    Test
                    </body>
                </html>
                

                请注意,如果 og:url 值与当前页面的 url 不同,Facebook 将在该 url 上查找描述而不是当前的描述,并忽略当前页面的描述标签.

                Note that, if the og:url value is different to the current page url, Facebook will look for a description on that url instead of the current one and ignore the current page's description tag.

                您可能还想知道,即使可以将两个描述标签组合在一起,Facebook 也不会在他们自己的网站上这样做.

                It might also interest you to know that, even though it's possible to combine the two description tags, Facebook doesn't do this on their own website.

                这篇关于将元描述和 Open Graph Protocol 描述合二为一的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:如何使用 HTML5 时间标签标记日期范围? 下一篇:什么是&lt;dl&gt;标记为?

                相关文章

                  <bdo id='220Tv'></bdo><ul id='220Tv'></ul>
                  <i id='220Tv'><tr id='220Tv'><dt id='220Tv'><q id='220Tv'><span id='220Tv'><b id='220Tv'><form id='220Tv'><ins id='220Tv'></ins><ul id='220Tv'></ul><sub id='220Tv'></sub></form><legend id='220Tv'></legend><bdo id='220Tv'><pre id='220Tv'><center id='220Tv'></center></pre></bdo></b><th id='220Tv'></th></span></q></dt></tr></i><div id='220Tv'><tfoot id='220Tv'></tfoot><dl id='220Tv'><fieldset id='220Tv'></fieldset></dl></div>

                  <small id='220Tv'></small><noframes id='220Tv'>

                  <tfoot id='220Tv'></tfoot>
                  1. <legend id='220Tv'><style id='220Tv'><dir id='220Tv'><q id='220Tv'></q></dir></style></legend>