如何使用iframe显示网站内容 [英] how use iframe to show content of website

查看:151
本文介绍了如何使用iframe显示网站内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友
我想在iframe中显示网站内容,但出现了一些问题,
有人告诉我如何使用iframe,这样没人能看到完整的网站,
另一个问题是,当我们右键单击iframe时,它会在新窗口中提供打开框架的选项,
我想在iframe上禁用右键单击,请帮助我,
谢谢

Hi friends
i want to show content of website in iframe, but got some problem,
any one tell me how i use iframe so that no one can see the full website,
one other problem is when we right click on iframe it give option open frame in new window,
i want disable the right click on iframe, help me,
Thanks

推荐答案

exaxt您使用iframe遇到的问题"是什么?

有关iframe的参考,我可以为您提供: http://www.w3schools.com/html/html_iframe.asp [ ^ ]

如果您使用iframe来显示自己网站中的内容,请放弃iframe并尝试使用AJAX.它的效率很高,并且弹出的问题更少.在此处可以找到一个很好的AJAX教程: http://www.w3schools.com/ajax/default.asp [ ^ ]

如果您使用iframe在其他域中显示网页,为什么只希望显示其中一部分.在您的网站上以自己的方式显示其他人的内容是不道德的.而且在大多数情况下,这甚至都不合法.

我在这里找到有关iframe的不错的对话: http://stackoverflow.com/questions/3797179 /why-do-people-still-use-iframes [
What is the exaxt "problem you got using iframe"?

for a reference on iframe, I can give you this: http://www.w3schools.com/html/html_iframe.asp[^]

If you are using iframe to display the content from your own site, abandon iframes and try using AJAX. It''s efficient and pops up less problems. A good AJAX tutorial is found here: http://www.w3schools.com/ajax/default.asp[^]

If you''re using iframe to display a page in a different domain, why would you want to display only a part of it. It''s not ethical to display content from others on your site as yours. And in most cases it''s not even legal.

I found a nice conversation on iframes here: http://stackoverflow.com/questions/3797179/why-do-people-still-use-iframes[^]. I think you should take a look at that too.

Good luck!


这篇关于如何使用iframe显示网站内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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