Re: [問題] 網頁顯示 少了 head ?
※ 引述《Edster (Edster)》之銘言:
: 各位好 我同學使用IE 開一些網站, 如博客來
: http://www.books.com.tw/
: 卻無法出現它的title
: 如下
: http://kuso.cc/1BK$
: 這困擾我們好一陣子了, 因為不能搜尋書目.
: 其他網站如 無名 則是無法出現圖片
: 看網站不能看照片 蠻不方便看的
: 請問要怎麼解決呢?
因為他用一種很噁心的寫法...
in code line 14 is
<script language="JavaScript" src="/js/inc1024/header_inc_wel.js"></script>
and in the file http://www.books.com.tw/js/inc1024/header_inc_wel.js is
some terrible codes such as:
line 1
document.write('<head>');
line 3
document.write('</head>');
line 4
document.write('<script language="JavaScript"
src="/js/wel_header2005.js"></script>');document.write('');
which means that there are two sets of <head>!!
As for the division you can't see on your browser,
it is just produced from the codes ranging from line 5 of the js file:
document.write('<div align="center">...');
This div block is it.
也許IE7的容錯能力比IE6差,
所以導致看不見。
可是我不知道這段code的哪裡是出錯的地方;
也許是兩個head,
我不確定, 我還得再測試看看,
或者你可以自己重寫這網頁的這部份。
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.115.21.205
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
Web_Design 近期熱門文章
PTT數位生活區 即時熱門文章