在Facebook中显示的Facebook像按钮,但不显示在IE中 [英] Facebook like button showing in Firefox but not showing in IE
问题描述
我使用XBFML标签在我的页面上有一个像Facebook的按钮。我认为代码正在运行,因为它在Firefox中没有问题。
I have a Facebook like button on my page using the XBFML tag. I think the code is working, because it works in Firefox without a problem.
但是在IE 8(运行在IE 7兼容模式下),该按钮不显示在全部。
But in IE 8 (running in IE 7 compliant mode), the button does not show at all.
如果我将它全部转换为类似按钮的iFrame版本,它都可以正常工作。但是,当我使用XBFML标签时,它不起作用。
If I switch it all to the iFrame version of the like button it all works. But when I go with the XBFML tag it does not work.
任何人都会遇到这样的事情?
Anyone run into anything like this?
推荐答案
尝试将xmlns属性添加到FB名称空间的HTML文档中:
Try adding the xmlns attribute to the HTML document for the FB namespace:
xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://opengraphprotocol.org/schema/"
这是另一种情况,其中Firefox对于IE来说太宽容了。
This is another case where Firefox is being too forgiving vs IE.
这篇关于在Facebook中显示的Facebook像按钮,但不显示在IE中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!