gpt4 book ai didi

facebook - 错误 6 (net::ERR_FILE_NOT_FOUND):找不到文件或目录

转载 作者:行者123 更新时间:2023-11-30 05:27:15 25 4
gpt4 key购买 nike

你好,我是一名学生,正在练习如何使用记事本在简单的 html 中放置类似框的插入代码,这是我用类似框插入代码编写的简单代码:

<html>
<head>
<title>My Great Web page</title>
</head>
<body>
<iframe src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Febitesblog&amp;width=292&amp;colorscheme=light&amp;show_faces=true&amp;border_color&amp;stream=true&amp;header=true&amp;height=590" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:590px;" allowTransparency="true"></iframe>
</body>
</html>

当我尝试在浏览器中执行时,它说:找不到此网页找不到网址的网页:

file://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Febitesblog&width=292&colorscheme=light&show_faces=true&border_color&stream=true&header=true&height=590
Error 6 (net::ERR_FILE_NOT_FOUND): The file or directory could not be found

希望大家能解决我的问题谢谢:)

最佳答案

失败是因为 //这是协议(protocol)相关的意思,它加载链接/照片/喜欢框/任何使用用于访问页面本身的相同协议(protocol)。

  • 通过 HTTP ( http:// ) 访问页面时,将通过 HTTP 包含赞框
  • 通过 HTTPS ( https:// ) 访问页面时,将通过 HTTPS 包含赞框

您正在通过文件协议(protocol) ( file:// ) 访问本地主机上的文件 - 这意味着它会尝试以相同的方式包含 Like 框,这是无效的,因为您的计算机上没有名为'www.facebook.com`

使用 <iframe src="https://...现在,将其改回 <ifame src=//...当你上传到你的服务器时

关于facebook - 错误 6 (net::ERR_FILE_NOT_FOUND):找不到文件或目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7852850/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com