1

一个客户有一个 oscommerce 网上商店,里面有很多有趣的东西供人们在 pinterest 上钉住,只有它的小书签钉销不起作用。我在网上到处搜索,但找不到任何有价值的东西,所以我希望这里的任何人都可以帮助我。

当我单击书签时,什么都没有显示,但是当我突然打开 firebug 时,pinterest 覆盖层会弹出所有图像。一旦所有内容出现 10 次 pinterest 警报,就会显示“抱歉,我们在此页面上看不到任何大图像或视频”。萤火虫控制台没有给我任何有用的东西,所以我有点没有想法。

4

3 回答 3

1

Okay, after some more poking around I found a reference to improper DOCTYPE's screwing up some bookmarklets in Chrome. I checked against some other sites and changed all the

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

into

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

And now it works!

As a side note, the bookmarklet also doesn't catch the images etc in frames, so that might screw up some sites also.

于 2012-04-07T13:28:46.750 回答
0

它可能不起作用的一个原因是,如果您的网站是 https 并且小书签是旧的。

我注意到 Pinterest 小书签在我们的网站上没有任何作用。

Chrome Web Inspector 透露:“[阻止] https://example.com/foo上的页面运行来自http://assets.pinterest.com/js/pinmarklet.js的不安全内容?...”

当前版本的小书签固定在 https 网站上工作,当然您不能依赖访问者保持最新状态。

于 2013-05-26T17:06:37.817 回答
0

我在我女朋友的 Wordpress 博客上遇到了类似的问题。

问题是我的图像名称为“a”、“b”、“c”、“d”(因为我在编写一些 JS OnMouseOver 翻转时很懒)。这些名称导致小书签无法加载——一旦我更改了对象名称,小书签就可以正常加载所有内容。

于 2012-04-19T19:20:32.417 回答