<template>
<div>
<div class="wrap5 wrap">
<div class="left"></div>
<div class="center">
网格布局
</div>
<div class="right"></div>
</div>
</div>
</template>
<script>
export default {
}
</script>
<style>
.wrap5{
display: grid;
width: 100%;
grid-template-rows: 200px;
grid-template-columns: 300px auto 300px;
}
.wrap5 .left{
background: red;
}
.wrap5 .right{
background: blue;
}
.wrap5 .center{
background: pink;
}
</style>
<!-- 比较新的一种布局方式,兼容性没那么好-->
标签:wrap5,background,网状,布局,300px,grid,template
From: https://www.cnblogs.com/xzemt/p/18030161