美化表单form
美化表单form
美化表单form

输入框 input

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<style type="text/css">
.input-wrapper{
width: 20%;
border: 2px solid #ff6b81;
}
input{
outline: none;
color: #90ee90;
border: 0;
width: 100%;
height: 40px;
line-height: 40px;
background-color: transparent;
}
</style>
<div>
<div class="input-wrapper">
<input type="text" value="daFei" />
</div>
</div>

输入框 input

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<style type="text/css">
.input-wrapper{
width: 20%;
}
input{
outline: none;
box-shadow: none;
display: inline-block;
border: 2px solid #ff6b81;
background-color: transparent;
width: 100%;
height: 40px;
line-height: 40px;
padding: 0 15px;
color: #90ee90;
}
</style>
<div>
<div class="input-wrapper">
<input type="text" value="daFei_foo" />
</div>
</div>