一笑而过 发表于 2025-3-10 15:06

网页跳转设置 使用 HTML 的 <meta> 标签 在 HTML 页面的 <head> 部分添加 <meta> 标签



使用 HTML 的 <meta> 标签
在 HTML 页面的 <head> 部分添加 <meta> 标签,设置 http-equiv 属性为 refresh,并指定跳转的时间和目标 URL。
<head>
    <meta charset="UTF-8">
    <meta http-equiv="refresh" content="0; url=http://example.com">
    <!-- content 属性中,前面的数字 0 表示延迟时间(秒),这里设置为 0 即立即跳转,后面是目标 URL -->
    <title>自动跳转页面</title>
</head>

页: [1]
查看完整版本: 网页跳转设置 使用 HTML 的 <meta> 标签 在 HTML 页面的 <head> 部分添加 <meta> 标签