[英]Facebook share button re sizes by itself
我的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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.