像按钮这样的Facebook需要XHTML + RDFa,但它使用的iframe对于该doctype无效

我认为必须有一些我不知道的东西。 facebook like按钮需要将其作为doctype:
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
使用iframe插入facebook like按钮 此doctype的iframe无效 有人能把我直接放在这里吗? ...麦克风     
已邀请:
有了这个   DOCTYPE XHTML + RDFa 1.0 将工作JS
<script type="text/javascript">
$(document).ready(function(){
        $('#iframe').after('<iframe src="url" scrolling="no" frameborder="0" overflow:hidden; width:400px; height: 70px;"></iframe>');
});
</script>
    
你不需要那个DOCTYPE,只要你想在W3.org上验证它,否则你应该没问题,OG标签应该仍然有用。您可以使用url linter来检查: http://developers.facebook.com/tools/lint/ 我刚刚使用了很多次
<!DOCTYPE html>
我本来只是添加了一条评论,以扩展MicE所说的但我还没有足够的REP!     
目前,似乎验证器+ facebook插件工作的唯一方法是使用 HTML5 doctype
<!doctype html>
    

要回复问题请先登录注册