ホームページ > ウェブフロントエンド > htmlチュートリアル > Web サイトは新しいホームに移動し、新しい URL にリダイレクトされます (コードが添付されています)。

Web サイトは新しいホームに移動し、新しい URL にリダイレクトされます (コードが添付されています)。

云罗郡主
リリース: 2018-10-09 16:50:42
転載
4197 人が閲覧しました

404 ページから自動的にホームページにジャンプするにはどうすればよいですか? Web サイトの 404 ページを作成するにはどうすればよいでしょうか。早速、コードに直接進みましょう。

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>很抱歉,网站搬新家啦!</title>

 

<style type="text/css">

body {margin: 0px; padding:0px; font-family:"微软雅黑", Arial, "Trebuchet MS", Verdana, Georgia,Baskerville,Palatino,Times; font-size:16px;}

p{margin-left:auto; margin-right:auto;}

a {text-decoration: none; color: #1064A0;}

a:hover {color: #0078D2;}

img { border:none; }

h1,h2,h3,h4 {

/*display:block;*/

margin:0;

font-weight:normal;

font-family: "微软雅黑", Arial, "Trebuchet MS", Helvetica, Verdana ;

}

h1{font-size:44px; color:#0188DE; padding:20px 0px 10px 0px;}

h2{color:#0188DE; font-size:16px; padding:10px 0px 40px 0px;}

 

#page{width:910px; padding:20px 20px 40px 20px; margin-top:80px;}

.button{width:180px; height:28px; margin-left:0px; margin-top:10px; background:#009CFF; border-bottom:4px solid #0188DE; text-align:center;}

.button a{width:180px; height:28px; display:block; font-size:14px; color:#fff; }

.button a:hover{ background:#5BBFFF;}

</style>

 

</head>

<body>

 

<p id="page" style="border-style:dashed;border-color:#e4e4e4;line-height:30px;background:url(sorry.png) no-repeat right;">

<h1>网站搬新家啦,即将跳转新网址~</h1>

<h2>The website is moving to a new home. It is about to jump to the new website. </h2>

<meta http-equiv="refresh" content="0.1;url=https://www.baidu.com">

<font color="#666666">若网页未能自动跳转新网址,请点击下面按钮进行跳转!</font><br /><br />

<p class="button">

<a href="https://www.baidu.com" title="进入新网址">进入新网址</a>

</p>

</p>

</body>

</html>  

ログイン後にコピー

上記は、新しいホームに移動した Web サイトの完全な紹介であり、新しい URL (コード付き) にリダイレクトされます。HTML チュートリアルについて詳しく知りたい場合は、注意してください。 PHP中国語ウェブサイト。

以上がWeb サイトは新しいホームに移動し、新しい URL にリダイレクトされます (コードが添付されています)。の詳細内容です。詳細については、PHP 中国語 Web サイトの他の関連記事を参照してください。

関連ラベル:
このウェブサイトの声明
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。
人気のチュートリアル
詳細>
最新のダウンロード
詳細>
ウェブエフェクト
公式サイト
サイト素材
フロントエンドテンプレート