模拟申请账户,两次密码相同,用户名大于6位,密码不能为空判断,(这是一个布局框架,没有里面的运行代码)
2017-10-24 14:17
561 查看
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>表单样式</title>
<style type="text/css">
* {
font-size: 12px;
margin: 0;
padding: 0;
}
input {
width: 320px;
height: 24px;
border: 1px solid #999;
border-radius: 4px;
}
.formErr {
border: 1px solid red;
}
.form .label {
display: block;
float: left;
width: 128px;
height: 40px;
line-height: 40px;
text-align: end;
}
.form .txt {
display: block;
float: left;
width: 340px;
height: 40px;
line-height: 40px;
padding-left: 16px;
}
.form button {
width: 56px;
height: 24px;
background-color: green;
border: 0;
border-radius: 4px;
color: white;
}
.form .errTips {
width: 226px;
background-color: lightpink;
color: darkred;
border-radius: 4px;
margin-left: 144px;
margin-top: 6px;
margin-bottom: 4px;
padding: 16px 48px;
}
</style>
</head>
<body>
<div class="form">
<div>
<span class="label">用户名</span>
<span class="txt"><input type="text" placeholder="6-20个字符"/></span>
</div>
<div style="clear: both"></div>
<div>
<span class="label">密码</span>
<span class="txt"><input type="password" placeholder="6-20个字符" class="formErr"/></span>
</div>
<div style="clear: both"></div>
<div>
<span class="label">重复密码</span>
<span class="txt"><input type="password" placeholder="再次输入密码"/></span>
</div>
<div style="clear: both"></div>
<div class="errTips">
<ul>
<li>密码长度不能小于6个字符!</li>
<li>密码不能为空!</li>
<li>两次密码输入不一致!</li>
</ul>
</div>
<div style="clear: both"></div>
<div>
<span class="label"></span>
<span class="txt"><button>提交</button></span>
</div>
<div style="clear: both"></div>
</div>
</body>
</html>
<html>
<head>
<meta charset="UTF-8">
<title>表单样式</title>
<style type="text/css">
* {
font-size: 12px;
margin: 0;
padding: 0;
}
input {
width: 320px;
height: 24px;
border: 1px solid #999;
border-radius: 4px;
}
.formErr {
border: 1px solid red;
}
.form .label {
display: block;
float: left;
width: 128px;
height: 40px;
line-height: 40px;
text-align: end;
}
.form .txt {
display: block;
float: left;
width: 340px;
height: 40px;
line-height: 40px;
padding-left: 16px;
}
.form button {
width: 56px;
height: 24px;
background-color: green;
border: 0;
border-radius: 4px;
color: white;
}
.form .errTips {
width: 226px;
background-color: lightpink;
color: darkred;
border-radius: 4px;
margin-left: 144px;
margin-top: 6px;
margin-bottom: 4px;
padding: 16px 48px;
}
</style>
</head>
<body>
<div class="form">
<div>
<span class="label">用户名</span>
<span class="txt"><input type="text" placeholder="6-20个字符"/></span>
</div>
<div style="clear: both"></div>
<div>
<span class="label">密码</span>
<span class="txt"><input type="password" placeholder="6-20个字符" class="formErr"/></span>
</div>
<div style="clear: both"></div>
<div>
<span class="label">重复密码</span>
<span class="txt"><input type="password" placeholder="再次输入密码"/></span>
</div>
<div style="clear: both"></div>
<div class="errTips">
<ul>
<li>密码长度不能小于6个字符!</li>
<li>密码不能为空!</li>
<li>两次密码输入不一致!</li>
</ul>
</div>
<div style="clear: both"></div>
<div>
<span class="label"></span>
<span class="txt"><button>提交</button></span>
</div>
<div style="clear: both"></div>
</div>
</body>
</html>
相关文章推荐
- 在一个tomcat 里面 两个相同的项目不能同时运行??
- 判断用户名和密码不能为空代码
- JavaScript判断用户名和密码不能为空的实现代码
- pig里面没有if:不能判断一个条件后决定一个执行步骤
- pig里面没有if:不能判断一个条件后决定一个执行步骤
- 登录判断用户名和密码是否正确的代码
- 判断用户名密码不能为空
- WCF 运行的时候 报错 提示 “ 同一个协定中不能存在两个名称相同的操作”
- 【JSP中servlet】单纯利用servlet写一个用户名密码判断页面
- OpenAPI的使用代码-判断用户名和密码
- 判断输入的一个数是否为回文数c++代码实例及运行结果
- 完成系统登录程序,从命令行输入用户名和密码,如果没有输入用户名和密码,则提示输入用户名和密码;如果输入了用户名但是没有输入密码,则提示用户输入密码,然后判断用户名是否是mldn,密码是否是hello,
- 有2.5亿个整数存放在一个文件中,(已知内存容量没有此文件大)如何判断出这个文件中有多少个不相同的数。
- java工程项目里,在一个包里面,不能出现同名的类名,这问题是刚接触java才会遇到的,特别是新手一般都没有建立包,而是使用默认的,易出现同名的类名,导致eclipse提示错误
- 判断输入的一个数是否为回文数c++代码实例及运行结果
- 在主函数中提示用户输入用户名和密码。另写一方法来判断用户输入是否正确。该方法分别返回一个bool类型的登录结果和和一个string类型的登录信息。如登录成功,返回true及“登录成功”,若登录失败则返回false及“用户名错误”或“密码错误”(使用out参数)
- mfc对话框程序在ide编译可运行,但编译完毕的debug和release版本不能运行。。后来发现原因是:用到的sqlite数据库文件没在对应目录下,而代码中没有try..catch..
- 在jsp界面实现对表单用户名、密码不能为空的验证代码
- JS【判断输入表单是否为空、两次输入密码是否相同】
- [置顶] 判断一个数是不是素数的最快的方法(代码可以运行,Miller_Rabin + 新的)