applet setting full screen display

When controlling the size of the display area of ​​the map, you want to display the map in full screen on the mobile phone, using the usual px or directly using the percentage is invalid for the height full screen

You can use the vh unit, and the entire screen defaults to 100vh; so set the height of the map to 100vh and the width to 100%, and that's it!

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325271462&siteId=291194637