<template>
<div class="box">
<div class="content">
<div class="box1" style="background-color: rgb(245,23,156)">第一个</div>
<div class="box2" style="background-color: rgb(12,233,3)">第二个</div>
<div class="box3" style="background-color: rgb(109,5,255)">第三个</div>
<div class="box4" style="background-color: rgb(233,187,3)">第四个</div>
<div class="box5" style="background-color: rgb(233,3,34)">第五个</div>
<div class="box6" style="background-color: rgb(245,23,156)">第六个</div>
<div class="box7" style="background-color: rgb(3,179,233)">第七个</div>
<div class="box8" style="background-color: rgb(233,187,3)">第八个</div>
</div>
</div>
</template>
<script>
export default {
components: {
},
provide() {
return {};
},
data() {
return {};
},
created() {
},
methods: {}
};
</script>
<style scoped>
.box{
height: calc(100% - 40px);
background-color: red;
padding: 20px;
}
.content{
width: 100%;
height: 100%;
background-color: #fff;
display: grid;
grid-template-columns: repeat(3,1fr);
grid-template-rows: repeat(3,1fr);
gap: 10px;
}
.box7{
grid-column: span 2;
}
</style>
- 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
<template>
<div class="box">
<div class="content">
<div class="box0" style="background-color: #409EFF">
此处未标题
</div>
<div class="box1" style="background-color: rgb(245,23,156)">第一个</div>
<div class="box2" style="background-color: rgb(12,233,3)">第二个</div>
<div class="box3" style="background-color: rgb(109,5,255)">第三个</div>
<div class="box4" style="background-color: rgb(233,187,3)">第四个</div>
<div class="box5" style="background-color: rgb(233,3,34)">第五个</div>
<div class="box6" style="background-color: rgb(245,23,156)">第六个</div>
<div class="box7" style="background-color: rgb(3,179,233)">第七个</div>
<div class="box8" style="background-color: rgb(233,187,3)">第八个</div>
</div>
</div>
</template>
<script>
export default {
components: {
},
provide() {
return {};
},
data() {
return {};
},
created() {
},
methods: {}
};
</script>
<style scoped>
.box{
height: calc(100% - 40px);
background-color: red;
padding: 20px;
}
.content{
width: 100%;
height: 100%;
background-color: #fff;
display: grid;
grid-template-columns: repeat(3,1fr);
grid-template-rows: 50px 1fr 1fr 1fr;
gap: 10px;
}
.box7{
grid-column: span 2;
}
.box0{
grid-column: span 3;
}
</style>
- 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
- 70
- 71
- 72
- 73
- 74
- 75