免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: achun.shx
打印 上一主题 下一主题

[TITLE的BUG]你的IE浏览器有这个BUG么?请求版主删了此帖 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2006-09-19 21:54 |只看该作者
原帖由 dz902 于 2006-9-19 15:46 发表


楼上!!!!!!!
我打开 Encoding 只是为了让你看这个文件是自动选为 UTF-8 的!!!!!!

那为什么“Auto-Select”前面没有那个勾?

论坛徽章:
0
12 [报告]
发表于 2006-09-19 22:18 |只看该作者
原帖由 L0ading 于 2006-9-19 23:54 发表

那为什么“Auto-Select”前面没有那个勾?

To correctly display Web pages encoded in any language

Most Web pages contain information that tells the browser what language encoding (the language and character set) to use.

If the page does not include that information, and you have the Language Encoding Auto-Select feature on, Internet Explorer can usually determine the appropriate language encoding.

To turn Auto-Select on

On the View menu in Internet Explorer, point to Encoding, and then make sure Auto-Select has a check mark. If it doesn't, select it.
If you are prompted to download language support components, click Download.

If Auto-Select cannot determine the correct language encoding, and you know what language encoding it should be, you can manually select it.


From IE6 Help

论坛徽章:
0
13 [报告]
发表于 2006-09-20 09:10 |只看该作者
楼上几位
别争了。
dz902 用的是英文的IE
我用的是中文的,英文的默认行为应该和中文的不一样的。

论坛徽章:
0
14 [报告]
发表于 2007-06-19 16:32 |只看该作者
meta必须在title前,若你的页面是utf-8的话,否则标题中有中文就会页面空白了。

论坛徽章:
0
15 [报告]
发表于 2007-06-19 17:46 |只看该作者
原帖由 lonestone 于 2007-6-19 16:32 发表
meta必须在title前,若你的页面是utf-8的话,否则标题中有中文就会页面空白了。


没有办法.我到 http://validator.w3.org/ 去验证了下面重新写的规范些的代码.W3C验证通过.
在IE(中文版 6.0,其他版本没有试过)下,只要你选择
查看->编码->自动选择.
仍然是一片空白.

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
  3. <head>
  4. <title>的</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  6. </head>
  7. <body>
  8. <p>
  9. 我的TITLE含有:"的".你可以看到我么?
  10. 此代码应该用utf-8编码保存,并且不要保存开始的 BOM
  11. 在IE(中文版 6.0,其他版本没有试过)下,只要你选择
  12. 查看->编码->自动选择.
  13. 应该是是一片空白.
  14. </p>
  15. </body>
  16. </html>
复制代码

我想楼上几位没有发现问题的原因可能就是 BOM 的原因.
你可别说 不加 BOM 当然出错了.WEB 开发动态打出的页面不含 BOM 太正常了.

[ 本帖最后由 achun.shx 于 2007-6-19 17:54 编辑 ]

论坛徽章:
0
16 [报告]
发表于 2007-06-19 19:20 |只看该作者
原帖由 achun.shx 于 2007-6-19 17:46 发表


没有办法.我到 http://validator.w3.org/ 去验证了下面重新写的规范些的代码.W3C验证通过.
在IE(中文版 6.0,其他版本没有试过)下,只要你选择
查看->编码->自动选择.
仍然是一片空白.



我的实践是把


  1. <title>的</title>
  2. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
复制代码


里面的titile和meta的位置换一下

  1. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  2. <title>的</title>
复制代码


看看,正常了把

论坛徽章:
0
17 [报告]
发表于 2007-06-19 21:47 |只看该作者
楼上的朋友,我发帖的问题就是title 在 meta 的前面才出这个问题...................
无语...........................

论坛徽章:
0
18 [报告]
发表于 2007-07-04 17:28 |只看该作者
这个问题在blogger里面早就发现了
blogger的模板就有这个问题。

论坛徽章:
0
19 [报告]
发表于 2007-07-26 18:45 |只看该作者
谁叫你把charset 放在title 后面的行,
自己写的滥。

论坛徽章:
0
20 [报告]
发表于 2007-07-29 21:44 |只看该作者
一般情况下我们都尽量先定义编码信息
否则IE是会有异常出现
但是是否成为BUG我就不知道了..
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP