html, body, #fengmap { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; } #layers { position: absolute; width: 100px; height: 200px; } .my-popup { background: #2c3e50; color: #fff; font-size: 16px; border-radius: 2px; border: none; box-shadow: none; margin: auto; justify-content: center; align-items: center; width: auto; display: inline-block !important; padding-left: 2px; padding-right: 2px; } .info { right: 0; margin-top: 10px; margin-right: 10px; padding: 2px 2px 2px 2px; position: absolute; border: #D7D7D7 1px solid; font-size: 12px; background-color: #ffffff; }