首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

HTML与Myeclipse,该怎么解决

2012-04-09 
HTML与MyeclipseHTML codebodybackgroundimages/背景.jpgtable width943 height553 border0

HTML与Myeclipse

HTML code
<body  background="images/背景.jpg"><table width="943" height="553" border="0" align="center">  <tr>    <td height="105" colspan="3" background="images/top.jpg" >&nbsp;</td>  </tr>  <tr>    <td height="20" colspan="3" id="td">基本信息</td>  </tr><form name="form1" method="post" action="" onSubmit="return check()">  <tr>    <td width="156" height="31" >用户名&nbsp;*</td>    <td width="293" id="td1"><input type="text" id="username" name="username"/></td>    <td width="480" id="td2">必填,为3-8位</td>  </tr>  <tr>    <td height="31" >真实姓名*</td>    <td  id="td1"><input type="text" id="truename" name="truename"/></td>    <td  id="td2">必填,只能为中文或英文,如张三,Tom</td>  </tr>  <tr>    <td height="31">密码*</td>    <td id="td1"><input type="password" id="passwd" name="passwd"/></td>    <td id="td2">必填,不能少于6位</td>  </tr>  <tr>    <td height="31">密码确认*</td>    <td id="td1"><input type="password" id="passwordCon" name="passwordCon"/></td>    <td id="td2">再填写一次密码</td>  </tr>    <tr>    <td height="31" colspan="3" id="td">详细信息</td>    <td>&nbsp;</td>    <td>&nbsp;</td>  </tr>  <tr>    <td height="31" >性别*</td>    <td id="td1">男: <input type="radio" name="gender" id="male"  checked>      女:<input type="radio" name="gender" id="femal"/></td>    <td id="td2">必填</td>  </tr>  <tr>    <td height="31" >所在部门*</td>    <td id="td1"><select name="部门" id="部门">      <option value="办公室">办公室        <option value="人事部">人事部          <option value="后勤部">后勤部          <option value="技术部">技术部          <option value="研发部">研发部          <option value="销售部">销售部      </select></td>    <td id="td2">必填</td>  </tr>  <tr>    <td height="31">出生日期*</td>    <td id="td1"><input type="text" name="time" id="time" onClick="WdatePicker()"></td>    <td id="td2">必填</td>  </tr>    <tr>    <td height="31">联系方式*</td>    <td id="td1"><input type="text" id="Tel" name="Tel"/></td>    <td id="td2">必填,11位手机号</td>  </tr>  <tr>    <td height="31">E-mail</td>    <td id="td1"><input type="text" id="mail"/></td>    <td id="td2">正确格式,xxxxx@xxx.com</td>  </tr>  <tr>    <td height="58" colspan="3" align="center"><input name="Register" type="submit" value="提交"/>      <input type="reset" name="Reset" value="重置"> </td>    &nbsp;      </tr>  </form></table></body>

这个语句运行没错误,但是导入到myeclipse 10 中后,


HTML code
<form name="form1" method="post" action="" onSubmit="return check()">

提示错误,标记(form)的位置无效,can't return from outside a function or method
我的js代码是和上边代码写在一起的

[解决办法]
忽略掉它吧,这个问题在另一个帖子里面也讨论了一番,没啥结论性内容:
http://topic.csdn.net/u/20111208/19/e316b448-964e-4174-a78d-a2fe6721d04a.html


此外这个问题已经作为Eclipse的Bug提出了:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=353209

热点排行