-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path两端对齐
56 lines (56 loc) · 1.33 KB
/
两端对齐
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>2端对齐</title>
<style type="text/css">
body{background:#fff; text-align:center; font-size:12px;}
body,ul,form,input,dl,dd,p,h1,h2,h3,h4,h5{margin:0;}
ul,input{padding:0;}
ul{list-style:none;}
h1,h2,h3,h4,h5,h6{font-size:100%; font-weight:normal;}
table{border-collapse:collapse; box-spacing:0;}
a img,input{border:none 0;}
a{text-decoration:none;}
em,i{font-style:normal;}
.clearfix:after{content:''; clear:both; display:block; height:0; visibility:hidden;}
.clearfix{*zoom:1;}
.box{
font-size:0;
letter-spacing:-0.5em;
text-align:justify;
text-justify:distribute-all-lines; /* for ie */
width:600px;
margin:100px auto;
background:#f0f0f0;
}
.box:after{
content:"";
height:0;
width:100%;
display:inline-block;
overflow:hidden;
}
.box li{
display:inline-block;
vertical-align:top;
letter-spacing:normal;
*display:inline;
*zoom:1;
width:32%;
margin:13px 0; font-size:12px;
height:120px;
background:#3b5998;
}
</style>
</head>
<body>
<ul class="box">
<li>你说呢</li>
<li> </li>
<li> </li>
<li> </li><li> </li>
<li> </li>
</ul>
</body>
</html>