[英]Adding a Facebook like button to my markup using iframe document not working
我盡了最大的努力使它正常工作,但我做不到。
這就是我所做的。
<body>
內的test.html文件中。 horiyang是facebook的名稱。
<!DOCTYPE HTML> <html> <body> <iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Ffacebook.com%2Fhoriyahng%2F&width=200x200&layout=standard&action=like&show_faces=true&share=true&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:200x200px; height:80px;" allowTransparency="true"></iframe> </body> </html>
請在您的iframe
代碼中//之前添加https:
<iframe src="https://www.facebook.com/plugins/like.php?href=https%3A%2F%2Ffacebook.com%2Fhoriyahng%2F&width=200&layout=standard&action=like&show_faces=true&share=true&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:200px; height:80px;" allowTransparency="true"></iframe>
這是您的盒子正在工作的小提琴鏈接,請檢查它。 http://jsfiddle.net/u5Lgeg5e/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.