<!DOCTYPE html>
<html>
<head>
<title>跳转页面示例</title>
<!-- 使用meta标签实现页面自动跳转 -->
<meta http-equiv="refresh" content="5; url=http://example.com/newpage.html">
</head>
<body>
<h1>你将在5秒后被重定向到新页面</h1>
<p>如果浏览器没有自动跳转,请<a href="http://example.com/newpage.html">点击这里</a>。</p>
</body>
</html>
<meta http-equiv="refresh" content="5; url=http://example.com/newpage.html">:
meta标签用于设置页面在5秒后自动跳转到指定的URL (http://example.com/newpage.html)。content="5; url=http://example.com/newpage.html"表示等待5秒后跳转到指定的URL。HTML结构:
<h1>和<p>标签用于提示用户即将发生跳转,并提供一个手动跳转的链接,以防自动跳转失败。应用场景:
上一篇:html5源码
下一篇:html 引入css
Laravel PHP 深圳智简公司。版权所有©2023-2043 LaravelPHP 粤ICP备2021048745号-3
Laravel 中文站