Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/87.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 我如何定制";网上预览“;在我的网站的iMessages中?_Html_Web - Fatal编程技术网

Html 我如何定制";网上预览“;在我的网站的iMessages中?

Html 我如何定制";网上预览“;在我的网站的iMessages中?,html,web,Html,Web,在iMessage中,当您共享一个网页时,URL会扩展为一个很好的预览,如下所示: 如何将这些元数据添加到我自己的网站中?事实证明,您可以通过以下方式实现这些预览: <html prefix="og: http://ogp.me/ns#"> <head> <title>The Rock (1996)</title> <meta property="og:title" content="An Eclipse Chaser’s Guid

在iMessage中,当您共享一个网页时,URL会扩展为一个很好的预览,如下所示:


如何将这些元数据添加到我自己的网站中?

事实证明,您可以通过以下方式实现这些预览:

<html prefix="og: http://ogp.me/ns#">
<head>
  <title>The Rock (1996)</title>
  <meta property="og:title" content="An Eclipse Chaser’s Guide to Your First Eclipse" />
  <meta property="og:type" content="article" />
  <meta property="og:url" content="https://www.nytimes.com/2017/08/14/science/eclipse-chasers-first.html" />
  <meta property="og:image" content="https://static01.nyt.com/images/2017/08/15/science/15SCI-CHASERS4/15SCI-CHASERS4-facebookJumbo.jpg" />
  ...
</head>
...
</html>

岩石(1996)
...
...
我在岩石旁欢笑(1996)。。。与您的示例中的其余元数据似乎有点不协调