嵌入外部网页没有的iframe? [英] Embed an External Page Without an Iframe?

查看:190
本文介绍了嵌入外部网页没有的iframe?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么办法嵌入外部网页,而不使用iframe?我有机会获得这两个网站,我只想说内容嵌入到调整图的基础上嵌入(它会随着时间而改变,并在多个网站)的内容页面。

Is there any way to embed an external web page without using an iframe? I have access to both sites, I just want the page that the content is embedded on to resize based on the content that is embedded (it will change over time, and be on multiple sites).

谢谢!

编辑:我不认为任何一种AJAX会工作,因为它是跨站点和JavaScript不会让你加载异地的内容(据我所知)。

I don't think any kind of AJAX would work because it's cross-site, and JavaScript doesn't let you load off-site content (as far as I'm aware).

推荐答案

您可以使用jQuery加载外部页面:

You could load the external page with jquery:


<script>$("#testLoad").load("http://www.somesite.com/somepage.html");</script>
<div id="testLoad"></div>
//would this help

这篇关于嵌入外部网页没有的iframe?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆