在我的网站中包含网站的一部分 [英] include part of a website in my website

查看:42
本文介绍了在我的网站中包含网站的一部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试找到一种方法来在我的网站中包含另一个网站的一部分.

I am trying to find a way to include part of another website in my website.

我可以这样做吗-我认为我可能会使用iframe,但是我如何才能使其仅在另一个网站上显示一个 .

can i do this - im thinking may use an iframe but how can i make it only show say one on the other site.

例如,如果另一个站点具有:

for example, if the other site has:

<div id="a_div">
content here
</div>

<div id="b_div">
other content here
</div>

我如何仅在我的网站上包括* a_div * div,所以只能如此:

how can i include only the *a_div* div on my site so only:

content here

会显示吗?

推荐答案

您无法做您想做的事情,对不起,无法过滤iframe内容.

You can't do what you're trying to do, sorry, It's not possible to filter the iframe content.

这篇关于在我的网站中包含网站的一部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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