我正在使用Dreamweaver CC在Chrome,FireFox,Opera和Safari中测试我的Facebook Like Box。但是,它没有出现。我将在Chrome中看到一个灰色框,它是类似Facebook的框,但显示“找不到文件或目录”。
<iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FTJs-Catfish-Wings%2F162057770483683&width&height=590&colorscheme=dark&show_faces=true&header=true&stream=true&show_border=true" scrolling="no" frameborder="0" style="border: none; overflow: hidden; height: 485px; width: 345px; padding-top: 8px;" allowTransparency="true"></iframe>
您需要在src属性中添加“ http:”或“ https:”。推荐的方式是“ //”(因为它从网站获取协议),但是只能在网络服务器上使用。如果这样不起作用,请将您的代码上传到Web服务器或启动本地代码,然后使用localhost。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句