微信小程序-改變switch組件大小

微信開發文檔中,switch能修改顏色,沒有直接修改switch大小的屬性。用通常控件height & width來修改寬高是沒有用的。。。微信 使用以下方法:微信開發 在.wxss文件:xss .wx-switch-input{ width: 42px !important; height: 20px !important;} .wx-switch-input::before{ width: 4
相關文章
相關標籤/搜索