小程序开发坑之---------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%;
}
posted @ 2018-04-25 11:46  漠小飞  阅读(1003)  评论(0编辑  收藏  举报