/**index.wxss**/ .container{ position: relative; width: 100%; height: 100vh; } #ofoMap{ position: absolute; left: 0; top: 0; right: 0; bottom: 0; width: 100%; height: 100%; z-index: 1; }