http://developers.facebook.com/docs/reference/plugins/like
要包含 facebook 上流行的 [Like] 按钮,我必须使用以下代码:
<iframe src="http://www.facebook.com/plugins/like.php?href=www.MyDomain.com&layout=standard&show_faces=false&width=225&action=like&font=lucida+grande&colorscheme=dark&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:250px; height:80px;" allowTransparency="true"></iframe>
由于allowTransparency 属性,我的网站不再在 W3C 上验证:
Line 313, Column 342: there is no attribute "allowTransparency"
… overflow:hidden; width:250px; height:80px;" allowTransparency="true"></iframe>
有办法解决吗?我无法使用 XFBML 版本。这真是太糟糕了..
最佳答案
您是否尝试过忽略此属性?不应该需要它。标准就更不用说了。
关于css - Facebook LIKE 按钮和 W3C 验证失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4367241/