收藏
回答

IphoneX 创建userInfoButton报错

框架类型 问题类型 API/组件名称 终端类型 操作系统 微信版本 基础库版本
小游戏 Bug createUserInfoButton 客户端 iOS 6.6.6 2.0.8
let button = platform.createUserInfoButton({
type: 'image' ,
   image: 'resource/image/btn_enter.png',
   text: '开始游戏' ,
   style: {
left: (width - 164) / 2  ,
       top: height - 100,
       width: 222 ,
       height: 92 ,
       lineHeight: 40 ,
       backgroundColor: '#00ff00' ,
       color: '#ffffff' ,
       textAlign: 'center' ,
       fontSize: 16 ,
       borderRadius: 4
   }
});


回答关注问题邀请回答
收藏

1 个回答

  • HS
    HS
    2018-05-19

    可否给个相关的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html),我们定位下问题

    2018-05-19
    有用
    回复 1
    • 斌
      2018-05-19
      好的,不过你们不一定能复现,因为我们这边3台iphone x,只有一台有这个情况,其他安卓设备和iphone 6 7也正常
      2018-05-19
      回复
登录 后发表内容