form注册表单圆角 demo
2015-07-16 16:36
393 查看
form注册表单圆角
<BODY>
<div class="form">
<ul class="list">
<li>
<label>用户名:</label>
<div class="circle-box user">
<input type="text" placeholder="5之6位字母或数字组合"/>
</div>
</li>
<li>
<label>用户名:</label>
<div class="circle-box user">
<input type="text" value="一路小串走向胜利" onfocus="this.value=''"
onblur="if(this.value==''){this.value='一路小串走向胜利'}" class="value"/>
</div>
</li>
</ul>
</div>
</BODY>
============================
.form {
width: 600px;
height: 600px;
margin: 100px auto;
background: #FBFBFB;
border: 1px transparent dashed;
}
.list {
width: 550px;
margin: 20px auto;
}
.list li {
width: 550px;
height: 40px;
margin-top: 15px;
}
.list label {
width: 110px;
height: 40px;
display: inline-block;
font-size: 16px;
line-height: 40px;
text-align: right;
float: left;
margin-right: 20px;
}
.list .circle-box {
width: 320px;
height: 40px;
border: 1px #D9D9D9 solid;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
float: left;
}
.list .user {
background: url(../images/img50.png) no-repeat left center;
}
.list input{
width: 266px;
height: 36px;
line-height:36px\9;
margin-left: 47px;
margin-top: 1px;
border: none;
font-size: 16px;
padding-left: 6px;
}
.list .value{
color: #A9A9A9;
}
============================
<BODY>
<div class="form">
<ul class="list">
<li>
<label>用户名:</label>
<div class="circle-box user">
<input type="text" placeholder="5之6位字母或数字组合"/>
</div>
</li>
<li>
<label>用户名:</label>
<div class="circle-box user">
<input type="text" value="一路小串走向胜利" onfocus="this.value=''"
onblur="if(this.value==''){this.value='一路小串走向胜利'}" class="value"/>
</div>
</li>
</ul>
</div>
</BODY>
============================
.form {
width: 600px;
height: 600px;
margin: 100px auto;
background: #FBFBFB;
border: 1px transparent dashed;
}
.list {
width: 550px;
margin: 20px auto;
}
.list li {
width: 550px;
height: 40px;
margin-top: 15px;
}
.list label {
width: 110px;
height: 40px;
display: inline-block;
font-size: 16px;
line-height: 40px;
text-align: right;
float: left;
margin-right: 20px;
}
.list .circle-box {
width: 320px;
height: 40px;
border: 1px #D9D9D9 solid;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
float: left;
}
.list .user {
background: url(../images/img50.png) no-repeat left center;
}
.list input{
width: 266px;
height: 36px;
line-height:36px\9;
margin-left: 47px;
margin-top: 1px;
border: none;
font-size: 16px;
padding-left: 6px;
}
.list .value{
color: #A9A9A9;
}
============================
![](http://images0.cnblogs.com/blog2015/777572/201507/161635587827008.png)
相关文章推荐
- 修改Linux终端界面分辨率的方法
- java中变量和方法的内存分析
- Oracle JOB问题解决汇总
- ios设计一部WindowsPhone手机
- tomcat中间件提交表单数据量过大警告处理方案
- SPRING技术内幕-笔记(十一)spring事物处理的设计与实现
- thinkphp的select和find的区别
- ubuntu14.04下安装opencv3.0.0安装笔记
- 谷歌提示adobe flash player旧版被屏蔽需要更新
- Windows键盘消息处理
- 瀑布流布局的几种实现
- Openldap to AD 尝试记录
- 13298
- GetDlgItem() 出现错误
- js offsetHeight offsetWidth 解说
- [LintCode]sqrt(x)
- Oracle 错误 maximum number of processes(150) exceeded 解决办法
- [社团管理系统]项目成立
- WinForm 生命周期, WinForm 事件执行顺序
- [web安全] 上传漏洞之解析漏洞