form表单
来源:互联网 发布:最近网络疯传的名校 编辑:程序博客网 时间:2024/05/16 05:48
<!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
- FORM表单
- 表单form
- form表单
- form表单
- form表单
- 表单(form)
- 表单form
- form 表单
- form表单
- [表单]form
- Form 表单
- form表单
- form表单
- form表单
- form表单
- Form表单
- form表单
- 表单Form
- 进程间通讯-共享存储
- Activiti-explorer从mysql切换Oracle不能自动创建表报错:ORA-00942: 表或视图不存在
- best-time-to-buy-and-sell-stock Java code
- 进程的创建-Process子类(python 版)
- 在vue项目中 如何定义全局变量 全局函数
- form表单
- 1024程序员节
- 复制单链表成为新的链表,然后return the number of items in the new list
- Destroying Array CodeForces
- React Native 模仿网易云音乐手机客户端,兼容安卓和IOS两个平台
- form表单样式
- Android lanunmode
- Tableau&BDP,哪个才是最适合中国用户的数据可视化分析工具?
- 从SVN上检出Maven项目报红叉错误,package错误 does not match the expected package "main.java.com.*