MozTW 討論區 https://forum.moztw.org/ |
|
網頁設計中.有兩網址指向同一主機.title選項不能正常出現? https://forum.moztw.org/viewtopic.php?f=13&t=14818 |
第 1 頁 (共 1 頁) |
發表人: | noid [ 2006-07-11, 14:28 ] |
文章主題 : | 網頁設計中.有兩網址指向同一主機.title選項不能正常出現? |
就是. 小的把伸請的兩個網址... www.web1.com 和www.web2.com 都導到www.web1.com的主機上.但是對應不同的首頁.(index.htm和index2.htm) 但是當輸入www.web1.com進入本站時.可以正確顯示index.htm中的 '<title> 這是title </title> 但是如果輸入www.web2.com進入web2. index2.htm中的 title卻只會出現 www.web2.com 而不會出現設定的 "title2" 請問是為什麼呢? |
發表人: | 風痕影 [ 2006-07-11, 16:20 ] |
文章主題 : | |
因為沒看到您的原始碼,所以無法判斷原因 不過很可能是HTML語法有錯誤 |
發表人: | noid [ 2006-07-11, 17:30 ] |
文章主題 : | |
風痕影 寫: 因為沒看到您的原始碼,所以無法判斷原因
不過很可能是HTML語法有錯誤 嗯嗯~那附上index2.htm的檔案. 代碼: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=big5"> <title>這是web2的title</title> </head> <frameset rows="80,*" cols="*" frameborder="NO" border="0" framespacing="0"> <frame src="top_frame.htm" name="topFrame" scrolling="NO" noresize > <frameset cols="118,*" frameborder="NO" border="0" framespacing="0"> <frame src="left_frame.asp" name="leftFrame" scrolling="NO" noresize> <frame src="mainpage.htm" name="mainFrame"> </frameset> </frameset> <noframes><body> </body></noframes> </html> |
發表人: | wini [ 2006-07-12, 01:41 ] |
文章主題 : | |
可能是轉址服務只支援最簡單的 HTML 式轉址的關係吧,所以 web2 轉向 web1 時,網頁標題才會是用網址表示。 這點可以觀察看看轉址過去的那個網頁,轉址商是不是用了框架來處理來判斷。(大概) |
第 1 頁 (共 1 頁) | 所有顯示的時間為 UTC + 8 小時 |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |