2012-01-29 101 views
1

我的Facebook like按钮不会出现在Firefox,Chrome和IE浏览器! 我试过3个代码选项,facebook让你生成按钮,但没有!Facebook like按钮不会出现

下面是代码:

<html > 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>Untitled Document</title> 
</head> 

<body> 
<iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2F3eesho.com%2Fmagazine%2Findex.html&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe> 

</body> 
</html> 

回答

4
<iframe src="//www.facebook.com/plugins/like.php?.... 

变化:

<iframe src="http://www.facebook.com/plugins/like.php?... 
OR 
<iframe src="https://www.facebook.com/plugins/like.php?... 

和它的作品完美...

可能与不同的浏览器猜测协议的方式做。

+1

谢谢,它工作正常:) – lama 2012-01-29 21:03:45

0

使用official code generator得到一个工作代码。

+1

但我用它!这是我用过的,我只是把它放在html代码中。 – lama 2012-01-29 15:03:53