1

我正在使用同时进行 +1 和分享的 Google+ 分享插件。

不幸的是,我无法获得我指定出现的图像。

我使用的是符合尺寸要求的 200 像素 x 200 像素的图像。我可以获得名称和描述以按指定显示。

以下是我正在使用的代码:

<!DOCTYPE html>
<html itemscope itemtype="http://schema.org/Vacancy">
<head>

<meta itemprop="name" content="Vacancy">
<meta itemprop="description" content="A new job vacancy etc">
<meta itemprop="image" content="https://encrypted-tbn3.google.com/images?q=tbn:ANd9GcQBafMb42NGLi-C-NEmdC-RQDJ5t8PRahD4uTdpOuSAnD5_gMU1_g">

</head>

<body> 

<!-- Place this tag where you want the +1 button to render -->
<g:plusone annotation="inline"></g:plusone>


<!-- Place this render call where appropriate -->
<script type="text/javascript">
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
</script>

</body>

</html>

除了 +1 共享上未显示正确的图像外,一切正常。

非常感谢这方面的任何帮助。

非常感谢,

玛丽

4

1 回答 1

1

您提供的代码对我有用。您的代码段中显示了一张 160 像素正方形的猫的图像。

片段的屏幕截图

于 2012-04-27T20:53:14.060 回答