m0_64263145 2023-07-25 22:09 采纳率: 0%
浏览 11

webgis前端中遇到的问题



```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")
  • 写回答

1条回答 默认 最新

  • CSDN-Ada助手 CSDN-AI 官方账号 2023-07-26 09:17
    关注
    不知道你这个问题是否已经解决, 如果还没有解决的话:

    如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^
    评论

报告相同问题?

问题事件

  • 创建了问题 7月25日

悬赏问题

  • ¥15 创建一个数据库(要创建的表和记事本的代码截图))
  • ¥15 有没有整苹果智能分拣线上图像数据
  • ¥20 有没有人会这个东西的
  • ¥15 cfx考虑调整“enforce system memory limit”参数的设置
  • ¥30 航迹分离,航迹增强,误差分析
  • ¥15 Chrome Manifest扩展引用Ajax-hook库拦截请求失败
  • ¥15 用Ros中的Topic通讯方式控制小乌龟的速度,走矩形;编写订阅器代码
  • ¥15 LLM accuracy检测
  • ¥15 pycharm添加远程解释器报错
  • ¥15 如何让子窗口鼠标滚动独立,不要传递消息给主窗口