1. 程式人生 > >微信小程序——button, swiper等默認樣式更改

微信小程序——button, swiper等默認樣式更改

round :after before tom wip 修改 編譯 border 無法

微信開發工具裏面,無法展示編譯後的一些樣式,如::before,::after這些偽類。有時候我們需要修改一些組件的默認樣式會略感到麻煩,因為不知道是通過哪裏控制的。

我就平常遇到的一些修改默認樣式,做一下匯總,不定期更新:

1.button的背景色,邊框,圓角:

button{
  background-color: transparent;
}
button::after {
  border: 0;
  border-radius:0    
}

2.swiper 的點的位置:

.wx-swiper-dots.wx-swiper-dots-horizontal{
  bottom
: 0px }

不定期更新中...

微信小程序——button, swiper等默認樣式更改