diff --git a/dist/btn/index.wxss b/dist/btn/index.wxss index 312b9c3f..0d3e4060 100644 --- a/dist/btn/index.wxss +++ b/dist/btn/index.wxss @@ -125,11 +125,12 @@ /* disabled */ .zui-btn.zui-btn--disabled { - color: #999; - background: #f8f8f8; - border-color: #e5e5e5; - cursor: not-allowed; - opacity: 1; + /* 防止样式被 button[disabled] 的规则覆盖,所以使用了important */ + color: #999 ! important; + background: #f8f8f8 ! important; + border-color: #e5e5e5 ! important; + cursor: not-allowed ! important; + opacity: 1 ! important; } /* ::last-child */