.main-view{ width:100vw; height:100%; overflow: hidden; position: relative; } canvas { width:100vw; height:calc(100vh - 408px);z-index: 10;position: relative;top: 0px;} #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:0px; top: -100vh; } .canvas-view{ position:relative; } .lable-view{ position:absolute; width:100vw; }