我的 Facebook 分享按钮一直运行良好,直到几天前它开始调整大小并拒绝打开时,有什么线索可以说明是什么原因造成的吗?\
这是我的弹出窗口的 js 脚本
function fbShare(url, title, descr, image, winWidth, winHeight) {
var winTop = (screen.height / 2) - (winHeight / 2);
var winLeft = (screen.width / 2) - (winWidth / 2);
window.open('http://www.facebook.com/sharer.php?s=100&p[title]=' + title + '&p[summary]=' + descr + '&p[url]=' + url + '&p[images][0]=' + image, 'sharer', 'top=' + winTop + ',left=' + winLeft + ',toolbar=0,status=0,width=' + winWidth + ',height=' + winHeight);
}
这是链接
<a href="javascript:fbShare('http://dundaah.com/docs/tue.html', 'Fb Share', 'Facebook share popup', 'http://goo.gl/dS52U', 520, 350)" class="button">Share</a>
如果这看起来很熟悉,那是因为我在这里找到了jsfiddle