.main-view{ width:100vw; height:100vh; overflow: hidden; } canvas:focus { outline:none; } #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; } .canvas-view{ position:relative; } .guide-mask { width: 100%; height: 100%; top: 0; left: 0; right: 0; bottom: 0; // background: rgba(0, 0, 0, 0.3); z-index: 7; position: fixed; margin: auto; pointer-events: none; transition: opacity 0.5s ease-out; } .guide-mask>img { width: 280px; height: 406px; bottom: 200px; right: 0; margin: auto; position: fixed; left: 0; } .guide-mask-hide { opacity: 0; pointer-events: none; } .cover-box{ position: absolute; max-width:100vw; // top:50%; // left: 50%; // transform: translate(-50%,-50%); // width: 620px; // height: 620px; background: transparent; z-index: 10; pointer-events: none; padding: 8px; .box-empty{ // position: absolute; width: 100%; height: 100%; // margin-top: 6px; // margin-left: 6px; border: 4px solid #fff; // box-sizing: content-box; box-shadow: rgba(0,0,0,.8) 0px 0px 0px 2005px; } .boundary{ position: absolute; width: 20px; height: 20px; border: solid 4px #fff; pointer-events: auto; z-index: 8; } .left-top{ top: 0px; left: 0px; border-right: none; border-bottom: none; } .right-top{ top: 0px; right: 0px; border-left: none; border-bottom: none; } .left-bottom{ bottom: 0px; left: 0px; border-right: none; border-top: none; } .right-bottom{ bottom: 0px; right: 0px; border-left: none; border-top: none; } .operate{ position: absolute; pointer-events: auto; width: 100px; height: 100px; z-index: 9; } .operate1{ left: -0px; top: -0px; } .operate2{ right: -0px; top: -0px; } .operate3{ right: -0px; bottom: -0px; } .operate4{ left: -0px; bottom: -0px; } } .cover-btn{ position: absolute; left: 50%; transform: translateX(-50%); bottom: 132px; width: 292px; height: 80px; border-radius: 40px; background: #fff; font-family: "DIN Alternate Bold"; font-weight: 700; font-size: 32px; color: #222; z-index: 11; }