垂直环绕布局[2]

2018-02-01

form_ch

1
2
3
4
5
<div class="wrap">
<img src="pro.jpg" alt="" class="fl">
<p class="fl clear_left">名字</p>
<textarea class="text">个人描述:</textarea>
</div>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*重置样式*/
html,div,p,img,textarea {
margin: 0;
padding: 0;
}
html{
font-size: 14px;
}
.wrap{
width: 500px;
margin: 20px auto;
padding: 10px;
overflow: auto;
}
.wrap img{
max-width: 130px;
max-height: 150px;
margin-right: 10px;
}
.wrap .text{
min-height: 10rem;
min-width: 25rem;
font-size: 1rem;
padding: 5px;
line-height: 1.5;
text-align: justify;
box-sizing: border-box;
}
.fl{
float: left;
}
.wrap p{
min-width: 130px;
text-align: center;
font-size: 1.2rem;
text-indent: 0;
}
.clear_left{
clear: left;
}