【问题标题】:YouTube thumbnail displayed as website preview (in LinkedIn)YouTube 缩略图显示为网站预览(在 LinkedIn)
【发布时间】:2018-08-14 19:36:37
【问题描述】:

我制作了一个基本的前端网页,其中我在 iframe 元素中嵌入了来自 YouTube 的单个视频。

<iframe width="100%" height="315" src="https://www.youtube.com/embed/link-to the-video" frameborder="0" id="mysong" allowfullscreen></iframe>

当我在 LinkedIn 上链接此页面时出现问题。视频缩略图成为页面的预览。这有点烦人,因为我不希望我的网站与 YouTube 缩略图相关联,而是希望使用不同的图像作为预览。

我可以在我的网页中添加一些内容来覆盖此行为并显示不同的预览吗?这就是我所说的“预览”:

【问题讨论】:

    标签: html preview


    【解决方案1】:

    找到解决方案:

    <meta property="og:image" content="http://link-to-image.png"/>
    

    【讨论】:

      【解决方案2】:

      很遗憾,由于您没有任何代码,因此我无法为您提供更多帮助。 在您网站的顶部放置它并将其设置为您想要的图像,它应该可以工作。

      <link rel="image_src" href="http://link.to/image.png" />
      

      【讨论】:

      • 不,但这确实&lt;meta property="og:image" content="http://link-to-picture.png"/&gt;
      • 感谢您的帮助,您的方向正确!
      猜你喜欢
      • 1970-01-01
      • 2020-05-30
      • 2019-07-04
      • 1970-01-01
      • 2021-03-16
      • 1970-01-01
      • 1970-01-01
      • 2014-09-26
      • 1970-01-01
      相关资源
      最近更新 更多