```html
<section class="mainbox">
<div class="column">
<div class="panel bar">
<h2>模块1</h2>
<div class="chart">图表</div>
<div class="panel-footer"></div>
</div>
<div class="panel line">
<h2>模块1</h2>
<div class="chart">图表</div>
<div class="panel-footer"></div>
</div>
</div>
<div class="column">
<div class="cesium" id="cesiumContainer"></div>
</div>
<div class="column">
<div class="panel bar">
<h2>模块1</h2>
<div class="chart">图表</div>
<div class="panel-footer"></div>
</div>
<div class="panel line">
<h2>模块1</h2>
<div class="chart">图表</div>
<div class="panel-footer"></div>
</div>
</div>
</section>
.cesium {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
/* 根据需要调整容器的宽度和高度 */
width: 400px;
height: 300px;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: black;
line-height: 1.15;
}
header {
position: relative;
height: 1.25rem;
background: url(../images/head_bg.png)
no-repeat;
background-size: 100% 100%;
}
h1 {
font-size: 0.475rem;
color: #fff;
text-align: center;
line-height: 1rem;
}
.showTime {
position: absolute;
right: 0.375rem;
line-height: 0.9375rem;
color: rgba(255, 255, 255, 0.7);
font-size: 0.25rem;
top: 0;
}
.mainbox {
display: flex;
min-width: 1024px;
max-width: 1920px;
margin: 0 auto;
padding: 0.125rem 0.125rem 0;
}
.column {
flex: 3;
display: flex;
/* 添加此行以设置 .column 为弹性容器 */
flex-direction: column;
/* 添加此行以设置 .column 内部子元素垂直布局 */
}
.column:nth-child(2) {
flex: 5;
}
.panel {
position: relative;
height: 3.875rem;
border: 1px solid rgba(25, 186, 139, 0.17);
background: url(../images/line.png) rgba(0, 0, 255, 0.125);
padding: 0 0.1875rem 0.5rem;
margin-bottom: 0.1875rem;
}
.panel::before {
position: absolute;
top: 0;
left: 0;
content: "";
width: 10px;
height: 10px;
border-top: 2px solid #02a6b5;
border-left: 2px solid #02a6b5;
}
.panel::after {
position: absolute;
top: 0;
right: 0;
content: "";
width: 10px;
height: 10px;
border-top: 2px solid #02a6b5;
border-right: 2px solid #02a6b5;
}
.panel .panel-footer {
position: absolute;
left: 0;
bottom: 0;
width: 100%;
}
.panel .panel-footer::before {
position: absolute;
bottom: 0;
left: 0;
content: "";
width: 10px;
height: 10px;
border-bottom: 2px solid #02a6b5;
border-left: 2px solid #02a6b5;
}
.panel .panel-footer::after {
position: absolute;
bottom: 0;
right: 0;
content: "";
width: 10px;
height: 10px;
border-bottom: 2px solid #02a6b5;
border-right: 2px solid #02a6b5;
}
.panel h2 {
height: 0.6rem;
color: #fff;
line-align: 0.6rem;
text-align: center;
font-size: 0.25rem;
font-weight: 400;
}
.panel .chart {
height: 3rem;
}
.cesium {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
/* 根据需要调整容器的宽度和高度 */
width: 400px;
height: 300px;
}
想在中间盒子中引入cesium地球,但cesiumviewer显示总是很小,如何修改是的地球能铺满中间盒子
![img](https://img-mid.csdnimg.cn/release/static/image/mid/ask/144971492096192.png "#left")