修改这一段代码<table> <tr> <td>账 号:</td> <td><input type="text" name="userNum" class="form-control" value="${list.getUserNum() }" readonly="readonly" /></td> </tr> <tr> <td>姓 名:</td> <td><input type="text" name="userName" class="form-control" value="${list.getUserName() }" /></td> </tr> <tr> <td>密 码:</td> <td><input type="text" name="password" class="form-control" value="${list.getPassword() }" /> </td> </tr> <tr> <td>联系电话:</td> <td><input type="text" name="phone" class="form-control" value="${list.getPhone() }" /></td> </tr> <tr> <td colspan="2"><input type="hidden" name="roleID" class="form-control" value="${list.getRoleID() }" /></td> </tr> <tr> <td><input type="submit" value="修改" class="btn btn-primary" /></td> <td><input type="reset" value="清空" class="btn btn-danger" /></td> </tr> </table>
时间: 2023-07-19 19:50:48 浏览: 79
html的table用法(让网页的视觉效果显示出来)
<table> <tr> <td>账 号:</td> <td><input type="text" name="userNum" class="form-control" value="${list.getUserNum() }" readonly="readonly" /></td> </tr> <tr> <td>姓 名:</td> <td><input type="text" name="userName" class="form-control" value="${list.getUserName() }" /></td> </tr> <tr> <td>密 码:</td> <td><input type="password" name="password" class="form-control" value="${list.getPassword() }" /> </td> </tr> <tr> <td>联系电话:</td> <td><input type="text" name="phone" class="form-control" value="${list.getPhone() }" /></td> </tr> <tr> <td colspan="2"><input type="hidden" name="roleID" class="form-control" value="${list.getRoleID() }" /></td> </tr> <tr> <td><input type="submit" value="修改" class="btn btn-primary" /></td> <td><input type="reset" value="清空" class="btn btn-danger" /></td> </tr> </table>
主要修改的地方是将密码的输入类型由"text"改为"password",这样输入的内容会被隐藏,提高了安全性。
阅读全文