模拟申请账户,两次密码相同,用户名大于6位,密码不能为空判断,(这是一个布局框架,没有里面的运行代码)
来源:互联网 发布:淘宝众筹能退款吗 编辑:程序博客网 时间:2024/06/04 19:57
<!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>
阅读全文
0 0
- 模拟申请账户,两次密码相同,用户名大于6位,密码不能为空判断,(这是一个布局框架,没有里面的运行代码)
- 判断用户名和密码不能为空代码
- 判断用户名密码不能为空
- 实现用户登录时若没有输入用户名,给出用户名不能为空的提示,若没有输入密码,给出密码不能为空的提示
- jsp页面判断登入输入的用户名和密码不能为空
- DOM-----用户名密码不能为空
- JS【判断输入表单是否为空、两次输入密码是否相同】
- AJAX判断用户名是否已存在以及密码是否大于6位等问题
- javascript简单判断表单(用户名密码是否为空,密码长度)
- 简单的页面验证:验证密码是够为空和确认密码是否相同
- 【JS】判断用户名和密码是否为空
- js判断登录界面用户名和密码是否为空
- js登录界面判断输入的用户名和密码是否为空
- phpmyadmin 密码不能为空的解决
- js验证input不为空且两次输入密码相同
- 注册一个用户名 要求:长度不小于6 密码相同
- JQuery 提示用户名密码不为空
- 我手上有一个ASP文件,添加用户时,没有添加密码的功能,添加用户成功时,更换到添加的用户要输入密码,密码不能为空,不怎么么办!
- 解析:大数据的滥用及弱点
- Java内存管理:深入Java内存区域
- html元素&属性的总结
- libvirt的log在/var/log中
- 通过 .gitlab-ci.yml配置任务-官方配置文件翻译
- 模拟申请账户,两次密码相同,用户名大于6位,密码不能为空判断,(这是一个布局框架,没有里面的运行代码)
- 流式输入/输出原理
- ubuntu14.04 server python3 安装matplotlib失败及解决方法
- 收集的机器学习面试问题
- scrapy安装,Twisted报错处理
- 关于上传压缩文件解析
- Mybatis源码解读
- android、java获得代码执行时长
- RecyclerView使用notifyItemRemoved错乱