mainContainer.vue
1.21 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
57
58
59
60
61
62
63
64
65
66
67
68
69
<template>
<div class="maincontainer">
<ul class="containerwrap clearfix">
<li>
<div class="heightsmall"></div>
<div class="heightsmall margin12-0"></div>
<div class="heightsmall"></div>
</li>
<li class="margin0-12">
<div class="heightper-top"></div>
<div class="heightper-bottom"></div>
</li>
<li>
<div class="heightsmall"></div>
<div class="heightsmall margin12-0"></div>
<div class="heightsmall"></div>
</li>
</ul>
</div>
</template>
<script>
export default {
name: 'mainContainer'
}
</script>
<style scoped>
.maincontainer {
padding: 12px 12px;
flex: 1;
}
.containerwrap{
display: flex;
height: 100%;
}
.containerwrap > li {
height: 100%;
display: flex;
flex-direction: column;
}
.containerwrap > li:nth-of-type(1) {
flex: 1;
}
.heightsmall{
flex: 1;
background: #f00;
}
.containerwrap > li:nth-of-type(2) {
flex: 2;
}
.heightper-top{
background: #f00;
flex: 1;
}
.heightper-bottom{
height: calc((100% - 24px)/3) ;
background: #f00;
margin-top: 12px;
}
.containerwrap > li:nth-of-type(3) {
flex: 1;
}
</style>