如何制作一个HTML页面以显示来自另一个URL的内容 [英] How to make a html page to show content from another url

查看:72
本文介绍了如何制作一个HTML页面以显示来自另一个URL的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想制作一个类似Google缓存的HTML页面.

I want to make a html page that act kind like google cache.

在主页HOME中说,我有一个指向网站B的链接,当我单击A时,出现的页面将显示另一个页面的内容,顶部有一个浮动栏,其功能如下:我自己的选择.

Say in my homepage HOME, I have a link A to a website B, and when I click on A, the page that comes out will display the content of another page, with a floating bar on top that has some functions of my own choices.

例如,我希望我的链接显示google.com,但我也想在该google.com上添加一个按钮(浮动栏,任何东西),当我按下该按钮时,我可以返回自己的网页.

For example, I want my link to show google.com, but I also want to add a button(floating bar, anything) to that google.com that allows me to return to my own webpage when pressed.

有人可以为我提供一些有用的资源吗,甚至更好的解决方案模板? :)

Can someone provide me some useful resources for me too look at, or even better a solution template? :)

谢谢!

推荐答案

iframe听起来可能是您所需要的,但是阅读您的描述后,我不确定100%. iframe将显示页面中另一个URL的内容.一旦有了所有您需要做的就是为页面设置样式并使用CSS/JavaScript来添加功能,如所述.

An iframe sounds like it may be what you need, but I'm not 100% sure after reading your description. The iframe will show content from another URL in your page. Once you have that all you need to do is style the page and use CSS/JavaScript to add in your functionality as described.

查看以下内容: http://www.w3schools.com/tags/tag_iframe.asp

这篇关于如何制作一个HTML页面以显示来自另一个URL的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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