标签: javascript html firefox iframe
我有一个文件
文件:/// C:/Users/7%20Legged%20Spider/Desktop/test.html
当我将其设置为iframe时
< iframe src =“file:/// C:/Users/7%20Legged%20Spider/Desktop/test.html”>
iframe是空白的,为什么会这样,我该如何解决?
答案 0 :(得分:3)
这是出于安全问题。你无论如何都无法绕过它。
您不应将本地文件用作href,因为:
href