小程序开发坑之---------Android真机运行,地图上面不显示元素

原因是没有为元素设置高度,

//外层div

.scanIcon{

position:fixed;

bottom:5.5vh;

width: 40vw;

height: 120rpx;   /*重点*/

margin-left: 30vw;

text-align: center;

}

//内层图片

.imgSize{

position: absolute;

top: 0;

left: 0;

width: 100%;

height: 100%;

}