首页 > 微信 > 详细

微信小程序button组件样式

时间:2019-04-09 21:41:27      阅读:213      评论:0      收藏:0      [点我收藏+]

点击微信按键组件才能出授权,所以自定义样式就是必须的了,来自网友的帮助,如下图

技术分享图片

<button class=btn1 open-type=contact>
    <image class=btnImg src=../../images/客服.png></image>
    <view>联系客服</view>
 </button>


.btn1{
  width: 200rpx;
  height: 200rpx;
  margin-top: 20rpx;
  background-color: white;
  color: #999999;
  border-radius: 0rpx;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 30rpx;
}

.btnImg {
  width: 50rpx;
  height: 50rpx;
}

.btn1::after {
  border: 0; 
}

 

 

https://www.jianshu.com/p/93d7104be420

 

.

微信小程序button组件样式

原文:https://www.cnblogs.com/xiangsj/p/10679790.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!