網頁設計中.有兩網址指向同一主機.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 14:24 發佈
沒圖沒真相
把index2.htm的html碼貼上來看看吧
天機不可洩漏,做莊的怎麼可能會輸
web2 的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>
http://noidtrue.blogspot.com 我的blog.不嫌棄來逛逛吧~
你的網頁本來就有切 fram 嗎?
如果不是..你其中個網址應該是用轉址的吧!
index2.htm的HTML碼沒有問題
我想應該是因為轉址造成的問題
www.web2.com的轉址是否是在首頁寫上META轉址到www.web1.com
有可能是因為這個轉址動作造成TITLE沒有作用的關係
天機不可洩漏,做莊的怎麼可能會輸
shiauyu wrote:
index2.htm...(恕刪)


如果是這樣那該怎麼處理呢?
http://noidtrue.blogspot.com 我的blog.不嫌棄來逛逛吧~
理論上 title 的顯示內容等於 html 的 <title> 內容。建議照以下方式 debug:

1. 用 browser 的 "檢視原始檔" 功能,看看 <title> 內容到底是 "www.web2.com" 或 "title2",不要去看你原本編寫的 html。

2. 用另一台電腦去看,如果正常,表示問題出在你的電腦 (你可能得清一下 cache 或重灌 Windows)。

3. 把真正的網址 po 一下,讓網友去實測,比較好 debug。
內文搜尋
X
評分
評分
複製連結
Mobile01提醒您
您目前瀏覽的是行動版網頁
是否切換到電腦版網頁呢?