从 HTML 页面重定向 [英] Redirect from an HTML page
本文介绍了从 HTML 页面重定向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以设置一个基本的 HTML 页面以在加载时重定向到另一个页面?
Is it possible to set up a basic HTML page to redirect to another page on load?
推荐答案
尝试使用:
<meta http-equiv="refresh" content="0; url=http://example.com/" />
注意:把它放在头部部分.
Note: Place it in the head section.
此外,如果您添加快速链接以防其无法正确刷新,则适用于较旧的浏览器:
Additionally for older browsers if you add a quick link in case it doesn't refresh correctly:
<p><a href="http://example.com/">重定向</a></p>
将显示为
这仍然允许您通过额外的点击到达您要去的地方.
This will still allow you to get to where you're going with an additional click.
这篇关于从 HTML 页面重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文