日期:2014-05-20  浏览次数:20709 次

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 中后,