【实测】Discuz实现页面跳转等相关代码,如不希望有社区首页的则直接跳转到门户首页
Meta标签是html中负责提供文档元信息的标签,在PHP程序中使用该标签,也可以实现页面跳转。 若定义http-equiv为refresh,则打开该页面时将根据content规定的值在一定时间内跳转到相应页面。
若设置content="秒数;url=网址",则定义了经过多长时间后页面跳转到指定的网址。
代码如下:- <meta http-equiv="refresh" content="3;url=https://tuyuanma.com">
复制代码- <html>
- <head>
- <meta http-equiv="refresh" content="3;url=http://tuyuanma.com">
- </head>
- <body>页面只停留3秒……</body>
- </html>
复制代码 |
|
|
|
|