-
Notifications
You must be signed in to change notification settings - Fork 10
/
42.CSS3新增的盒子模型属性.html
48 lines (48 loc) · 1.1 KB
/
42.CSS3新增的盒子模型属性.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
div{
width:200px;
display:block;
border:1px solid #000;
padding:10px;
box-orient:vertical;
/*box-sizing: border-box;*/
/*-webkit-box-sizing: border-box;*/
/*-o-box-sizing: border-box;*/
/*-moz-box-sizing: border-box;*/
}
#p1{
flex-box:1;
-webkit-flex-box:1;
border:1px solid #000;
height:50px;
background-color: aquamarine;
}
#p2{
flex-box:1;
-webkit-flex-box:1;
border:1px solid #000;
height:50px;
background-color: bisque;
}
#p3{
flex-box:1;
-webkit-flex-box:1;
border:1px solid #000;
height:50px;
background-color: coral;
}
</style>
</head>
<body>
<div id="div">
<p id="p1"></p>
<p id="p2"></p>
<p id="p3"></p>
</div>
</body>
</html>