線上服務咨詢
Article/文章
記錄成長點滴 分享您我感悟
微信小程序中如何改變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]) { back沈陽軟件定制ground-color: #fff; color: #1e82d2 ; }
修改button按鈕帶有虛邊的樣式
button::after { border: none; }
以上就是微信小程序中如何改變button按鈕的樣式的詳細內容,更多請關注沈陽網站建設其它相關文章!
微信小程序