.main-view{ width:100vw; height:100vh; overflow: hidden; } canvas { width:100vw; height:calc(100vh - 408rem);z-index: 10;} #mapDiv{ background-color: #fff; } page { -webkit-user-select: none; user-select: none; width: 100%; height:100vh; overflow-x: hidden; overflow-y: hidden; } /* 生成截屏的画布对象 */ #canvas { width: 100vw; z-index: -1; // position: absolute; left:0rem; } .canvas-view{ position:relative; } .lable-view{ position:absolute; width:100vw; }