我在HTML页面上有类似Facebook的按钮代码,直接来自FB开发者网站:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
<title>FB Like button test</title>
</head>
<body>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<fb:like href="http://developers.facebook.com/docs/reference/plugins/like" send="false" layout="button_count" width="90" show_faces="true"></fb:like>
</body>
</html>
当我查看Firefox或其他非IE浏览器时,我看到一个看起来很正常的按钮,如下所示:
{Like} <[1.5m]
然而,当我在IE8上查看相同的页面时,它没有显示相同的计数,它似乎忽略了width="90"
,而我最终得到了一个像这样的长字符串:
{Like} Be the first of your friends to like this.
发生了什么事?