2015-06-11 77 views
1

我正在尝试在博客页面上添加一个Pin it按钮。 AddThis小部件正在用于此目的。页面上的Pinterest图像未显示

但是,当我尝试使用PIN功能,那么它不会选择我的网页上的所有图像。

的图像标记如下

- 入门置顶

<img src="images/blog/123_3710961211.jpg" class="blog-main-img"> 

- 没有得到置顶

<img src="data:image/png;base64,v2nv1jcqS/VEhanlIJN8hnyDHoT4Z8FfAhX/g8EI9yHfLfPFQAAAA 
BJRU5ErkJggg==" data-filename="Victor Vasarely positive negative space pic.png" 
style="width: 521px;"> 

让我知道什么是e RROR? Pin是否不包含数据图像? 我曾尝试使用另一个小部件,但也有相同的结果。

我读的地方img大小应该至少100×200但我所有的图片都比那大。

+0

有一种创造牵制,但也需要API和我认为你需要有用户登录... https://developers.pinterest.com/docs/api/pins/#create-pins –

回答

0

Pinterest的不支持从BASE64图片钉,你应该能够meta标签设置在网页上不显示实际图像然而

<meta property="og:image" content="http://example.com/pic.jpg" />

+0

从这个页面看起来他们支持base64,但只为登录在用户... https://developers.pinterest.com/docs/api/pins/#create-pins –