0

我想在 iframe 中加载一个 html 文件。如果我在本地使用它

iframe id='index-page' src='index.html'

它正在正确显示页面。该文件现在已上传到某个服务器上,并且我在服务器上拥有 html 页面的完整路径。每当我在 iframe 中提供完整路径时。html 文件正在桌面上下载,而 iframe 上不显示任何内容。如何显示服务器上该html文件的内容到iframe?

4

0 回答 0