赋值粘贴即可使用
效果图:
源码:
<template>
<div class="pro_info">
<div class="top">
<div class="left">
<div class="kuang">
<div style="color:white">
你好
</div>
</div>
</div>
<div class="right">
<div class="kuang">
<div style="color:white">
你好
</div>
</div>
</div>
</div>
<div class="bottom">
<div class="left">
<div class="kuang">
<div style="color:white">
你好
</div>
</div>
</div>
<div class="right">
<div class="kuang">
<div style="color:white">
你好
</div>
</div>
</div>
</div>
</div>
</template>
<style>
.pro_info {
position: absolute;
width: 100%;
height: 100%;
}
.pro_info .top {
width: 100%;
height: 50%;
background-color: yellow;
}
.pro_info .bottom {
background: #d9c666;
width: 100%;
height: 50%;
}
.left {
width: 50%;
height: 100%;
float: left;
}
.top .left {
background-color: black;
}
.top .right {
background-color: black;
}
.right {
float: left;
width: 50%;
height: 100%;
}
.bottom .left {
background-color: black;
}
.bottom .right {
background-color: black;
}
.kuang{
background-color:#262626;
width: 96%;
height: 96%;
margin: 2%;
border-radius: 20px;
}
</style>