微信小程序开发,button设置100%无效是什么原因呢?下面提供2种处理办法
1、app.json删除以下配置
"style": "v2"
2、直接在button上设置style
<button class='uc-access' open-type="contact" style="width:100%;">
<image src='/images/icon-user.png' mode='widthFix'></image>
<view>联系客服</view>
<image class='arrow' src='/images/arrow.png' mode='widthFix'></image>
</button>
- 版权所有:奇站网络 转载请注明出处
- 厦门奇站网络科技有限公司,专业提供网站建设,响应式网站建设,小程序开发,系统定制开发。
- 软件开发咨询热线:吴小姐 13313868605