在Facebook中显示的Facebook像按钮,但不显示在IE中 [英] Facebook like button showing in Firefox but not showing in IE

查看:116
本文介绍了在Facebook中显示的Facebook像按钮,但不显示在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆