撒拉嘿哟木头 2011-03-23 20:58 采纳率: 100%
浏览 1276
已采纳

从 HTML 页面重定向

Is it possible to set up a basic HTML page to redirect to another page on load?

转载于:https://stackoverflow.com/questions/5411538/redirect-from-an-html-page

  • 写回答

25条回答 默认 最新

  • 狐狸.fox 2011-03-23 21:00
    关注

    Try using:

    <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/">Redirect</a></p>

    Will appear as

    Redirect

    This will still allow you to get to where you're going with an additional click.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(24条)

报告相同问题?

悬赏问题

  • ¥15 教务系统账号被盗号如何追溯设备
  • ¥20 delta降尺度方法,未来数据怎么降尺度
  • ¥15 c# 使用NPOI快速将datatable数据导入excel中指定sheet,要求快速高效
  • ¥15 再不同版本的系统上,TCP传输速度不一致
  • ¥15 高德地图点聚合中Marker的位置无法实时更新
  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式