部分设置不是非常完美 有待后期学习优化
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>账户信息</title> <link rel="stylesheet" type="text/css" href="idup0.css"></head><body> <form action="#"> <div class="all"> <div class="head">-- 账户信息 --</div> <div class="chence"> <span class="xing">*</span> <label for="userAccount">用户名:</label> <input type="text" class="kuang-1" id="userAccount" placeholder="用户名设置成功后不可以被修改"> <span id="str_1"></span> </div> <div class="chence"> <span class="xing">*</span> <label for="userPass">登录密码:</label> <input type="password" class="kuang" id="userPass" placeholder="6-20位字母,数字或者符号"> <span id="str_2"></span> </div> <div class="chence"> <span class="xing">*</span> <label for="userPass_">确认密码:</label> <input type="password" class="kuang" id="userPass_" placeholder="再次确认登录密码"> <span id="str_3"></span> </div> <div class="chence"> <span class="xing">*</span> <label for="userName">真实姓名:</label> <input type="text" class="kuang" id="userName" placeholder="请输入真实姓名,中文且最多五位"> <span id="str_4"></span> </div> <div class="chence"> <span class="xing">*</span> <label for="information">身份证号:</label> <input type="text" class="kuang" id="information" placeholder="请输入有效的身份证号码"> <span id="str_5"></span> </div> <div class="chence"> <span class="xing">*</span> <label for="email">邮箱:</label> <input type="email" class="kuang-2" id="email" placeholder="请输入有效的邮箱地址"> <span id="str_6"></span> </div> <div class="chence"> <span class="xing">*</span> <label for="tell">手机号码:</label> <input type="tel" class="kuang" id="tell" placeholder="请输入您的手机号码"> <span id="str_7"></span> </div> <div class="chence-1"> <input type="checkbox" id="choose"> <label class="cu" for="choose">我已阅读并同意遵守规定</label> <button id="tijiao">确认提交</button> </div> </div> </form></body><script type="text/javascript" src="idup0.js"></script></html>