小程序中怎样改变button按钮的样式

小编给大家分享一下小程序中怎样改变button按钮的样式,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!

Button按钮

<button class='getCodeView firstListLineStyle'
 disabled='{{disabled}}' </button>

Button按钮样式

.getCodeView { 
  width: 100%; 
  margin-right: 20rpx; 
  height: 60rpx; 
  line-height: 60rpx; 
  background: #fff; 
  color:#1e82d2; 
  padding-right:0rpx; 
  }

修改button按钮disabled为true时 会出现灰色字体 浅灰色背景的样式

button[disabled]:not([type]) { 
  background-color: #fff; 
  color: #1e82d2 ; 
  }

修改button按钮带有虚边的样式

button::after { 
  border: none; 
  }

以上是“小程序中怎样改变button按钮的样式”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注行业资讯频道!