如何使用iframe或对象在我自己的网站上打开其他网站的页面 [英] How to open other website's page in my own website using iframe or object
问题描述
我有一个跟踪快递的asp.net演示网站,假设我正在使用fedex courier的服务,我想在我自己的asp.net网站上实现跟踪系统
我使用下面的代码< br $>
I have a asp.net demo website of tracking courier, suppose I am using service of fedex courier and I want to implement tracking system in my own asp.net website
I used following code
当我加载我的网站时,iframe内容应显示在iframe的网站区域内,但它会覆盖我的网站。表示fedex替换我的网站网址并显示自己的网址
https://www.fedex.com/apps/fedextrack/?action=track&action=track& ;跟踪号码
我该怎么办请帮助
提前致谢
我尝试过:
when I am loading my site then iframe content should be shown within my website area in iframe, but it overrides my website. means fedex replacing my sites url and showing its own url like that
https://www.fedex.com/apps/fedextrack/?action=track&action=track&tracknumbers
what should I do please help
Thanks in advance
What I have tried:
<iframe class="embedly-card" src="https://www.fedex.com/apps/fedextrack/?action=track&action=track&tracknumbers"></iframe>
推荐答案
联邦快递网站上可能有代码检查它是否显示在iframe中,如果是,则自行导航到顶部。
There is probably code on the fedex site that checks if it is being shown in an iframe and if so navigates itself to the top.
这篇关于如何使用iframe或对象在我自己的网站上打开其他网站的页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!