jsp页面错位
jsp页面代码为:
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce"> <tr> <td height="20" bgcolor="#FFFFFF" align="center" width="50%"> 上级部门: </td> <td height="20" bgcolor="#FFFFFF" align="left" width="50%"> <select id="parent.id" name="parent.id" style="width:50%"> <option value="0">请选择上级部门</option> <s:iterator value="data.list"> <option value="<s:property value="id"/>" <s:if test="id == parentId">selected="selected"</s:if>> <s:property value="name"/> </option> </s:iterator> </select> </td> </tr> <tr> <td height="20" bgcolor="#FFFFFF" align="center" width="50%"> 部门编号: </td> <td height="20" bgcolor="#FFFFFF" align="left" width="50%"> <s:textfield name="identifier" id="identifier" cssStyle="width:50%"/> </td> </tr> <tr> <td height="20" bgcolor="#FFFFFF" align="center" width="50%"> 部门名称: </td> <td height="20" bgcolor="#FFFFFF" align="left" width="50%"> <s:textfield name="name" id="name" cssStyle="width:50%"/> </td> </tr> </table>
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce"> <tr> <td height="20" bgcolor="#FFFFFF" align="center" width="50%"> 上级部门: </td> <td height="20" bgcolor="#FFFFFF" align="left" width="50%"> <select id="parent.id" name="parent.id" style="width:50%"> <option value="0">请选择上级部门</option> </select> </td> </tr> <tr> <td height="20" bgcolor="#FFFFFF" align="center" width="50%"> 部门编号: </td> <td height="20" bgcolor="#FFFFFF" align="left" width="50%"> <tr> <td class="tdLabel"></td> <td><input type="text" name="identifier" value="" id="identifier" style="width:50%"/></td></tr> </td> </tr> <tr> <td height="20" bgcolor="#FFFFFF" align="center" width="50%"> 部门名称: </td> <td height="20" bgcolor="#FFFFFF" align="left" width="50%"> <tr> <td class="tdLabel"></td> <td><input type="text" name="name" value="" id="name" style="width:50%"/></td></tr> </td> </tr> </table>