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

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

问题描述

我想制作一个类似于谷歌缓存的 html 页面.

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

说在我的主页HOME,我有一个链接A到一个网站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天全站免登陆