以下是代码,开发者工具没有问题,小程序真机的时候就不显示按钮

 index.wxml

<view class="map">  <map class="map" id="map" longitude="{{longitude}}" latitude="{{latitude}}" scale="14" show-location="true" markers="{{markers}}" bindmarkertap="makertap"></map>

</view>

<button bindtap="addRequirement" class="publish-btn">发布需求</button>


index.wxss


.map{

  width: 100%;

  height: 100vh;

}

.publish-btn

{

color:white;

background-color: black;

position:fixed;

display: true;

_position:relative; /* hack for IE6 */

z-index:1;

top: 90%;

margin:auto;

left:30%;

right:30%;

border-radius: 0px;

border-bottom-left-radius:20px;

border-top-left-radius:20px;

border-bottom-right-radius:20px;

border-top-right-radius:20px;

font-size: 18px;

font-family: "微软雅黑";

}


小程序真机调试下按钮不显示

展开全部
收起
1回答
提交回答
  • 至过去的我

    2044人对此回答表示赞同

    我是未来的你,你现在是不是在年找寻小程序答案。你不要感觉诧异,给你来信原因,就是让你不在后悔。今天去学习如何推广小程序,相信......点击查看更多>
    发布于
  • Robert

    15人对此回答表示赞同

    原生组件的层级是,无法通过层级去控制,你可使用cover-view去搭配使用:这是有关文档:https://developers.weixin.qq.com/miniprogram/dev/component/cover-view.html

    展开
    15
    0回复
    发布于 6年前

    评论(0)

    收起评论

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
咨询热线

13312967497

扫码添加业务即可随时咨询 还可领取小程序推广攻略

业务咨询: 13312967497
扫码咨询

扫码咨询套餐

回到顶部