作者StarTouching (抚星)
看板Web_Design
标题Re: [问题] 网页显示 少了 head ?
时间Tue May 8 04:13:24 2007
※ 引述《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