将网页动态嵌入到另一个网页中
我想将一个网页嵌入到另一个网页中。由于某些问题我无法使用 iFrame。我尝试用标签。但它在 IE 中带来了一些奇怪的问题。嵌入网页内的链接不会在 IE 窗口的整个窗口中打开。有什么解决办法吗? 我也在寻找一些基于 ajax 的解决方案,但我不确定它是否有效,因为我的目标页面有大量外部 javascript 文件以及 CSS。
任何解决方案或想法都会有很大帮助。
I would like to embed an web page into another web page. Since due to some issues I cannot use a iFrame. I tried with tag. But it gives some weird problems in IE. The links inside the embedded web pages does not open up in the full body of the window in IE. Is there any solutions to it??
I'm also looking for some ajax based solutions, but I'm not sure whether it will work as my target page is having lots of external javascript files as well as CSS.
Any solutions or ideas will be of great help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用扩展名 .php 保存两个页面,并在另一个文档中希望该文档的位置添加此代码:(
您要添加的文档应该只包含属于该位置的代码,不要重复 body 标签、head、html、doctype等等...)
如果不使用本地服务器或上传到服务器,您也无法看到结果。
You can save both pages with extension .php and where you want the document inside the other document add this code:
(The document you are adding should only have the code that belongs there, do not repeat the body tags, head, html, doctype etc...)
You also cannot see the results without using your local server or uploading to a server.