【发布时间】:2015-07-24 02:07:40
【问题描述】:
我正在尝试让 google+、facebook 和 twitter 显示我在分享时选择的图像。我写了一个应该是的html代码,但由于某种原因它不起作用。那是在身体里:
<a href="https://www.facebook.com/sharer/sharer.php?u=incodedURL" target="_blank">
<img src="other/facelog.png" alt="Facebook Logo" id="facelog"></a>
<a href="https://plus.google.com/share?url=incodedURL" target="_blank">
<img src="other/googlog.png" alt="Google Plus Logo" id="googlog"></a>
<a href="https://twitter.com/intent/tweet?url=incodedURL" target="_blank">
<img src="other/twitlog.png" alt="Twitter Logo" id="twitlog"></a>
在头脑中,我尝试了来自 1、2、3 和 4 的 Open Graphs、元标记和项目道具。
还有很多其他的,但它们都不起作用。我的图片、标题和说明未显示。我正在使用 450x450 像素的 .jpg 图像。 HTML。
【问题讨论】:
-
顺便说一句 - 网站不在本地主机上,并尝试从网络和文件夹中添加图像。
标签: html facebook twitter share