下午在eclipse中无意检查了一个教科书上极简单的html文件 发现了个很奇怪的问题....
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN ">
<html>
<head>
<title> 多值变量提交 </title>
<meta http-equiv= "keywords " content= "keyword1,keyword2,keyword3 ">
<meta http-equiv= "description " content= "this is my page ">
<meta http-equiv= "content-type " content= "text/html; charset=UTF-8 ">
<!-- <link rel= "stylesheet " type= "text/css " href= "./styles.css "> -->
</head>
<body bgcolor= "ffffff ">
选出你最喜欢吃的水果:
<form action= "servlet/multiChoice " name= "form1 " method= "post ">
<input type= "checkbox " name= "checkbox1 " value= "苹果 "> 苹果
<input type= "checkbox " name= "checkbox1 " value= "西瓜 "> 西瓜
<input type= "checkbox " name= "checkbox1 " value= "桃子 "> 桃子
<input type= "checkbox " name= "checkbox1 " value= "葡萄 "> 葡萄
<input type= "submit " name= "Submit " value= "提交 ">
<input type= "reset " name= "reset " value= "重置 ">
</form>
</body>
</html>
文件位于一个J2EE的project中 myeclipse里的browser应该是ie核心的吧 就是不能正常显示这个文件 看源代码可以看到所有的code 但页面显示啥都没有 也没有提示出错 用FF却可以正常显示....
折腾了老半天 发现只要把title上的 多值变量提交 改掉就可以了 比如说title用 多值变量 网页就可以正常显示....
这个问题熊猫还是第一次碰到 不知道怎么解决 虽然不影响编程 但总觉得怪怪的 哪位大大碰到过的知道原因的出来指导一下 是不是ie设置上的问题 熊猫用的是ie7....
------解决方案--------------------
<meta http-equiv= "content-type " content= "text/html; charset=UTF-8 ">