本文介绍了从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/" />
注意:将其放在头部.
另外,对于较旧的浏览器,如果添加了快速链接以防刷新不正确,则:
Additionally for older browsers if you add a quick link in case it doesn't refresh correctly:
<p><a href="http://example.com/">Redirect</a></p>
将显示为
这仍然可以让您单击一下鼠标即可到达要去的地方.
This will still allow you to get to where you're going with an additional click.
这篇关于从HTML页面重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!