From e440c562deb868e5ac6c74b1f2710d7ccdd0cf64 Mon Sep 17 00:00:00 2001 From: Nino Date: Mon, 26 Dec 2016 16:36:06 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E6=AD=A2=E6=A0=B7=E5=BC=8F=E8=A2=AB?= =?UTF-8?q?=20button[disabled]=20=E7=9A=84=E8=A7=84=E5=88=99=E8=A6=86?= =?UTF-8?q?=E7=9B=96=EF=BC=8C=E6=89=80=E4=BB=A5=E4=BD=BF=E7=94=A8=E4=BA=86?= =?UTF-8?q?important?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/btn/index.wxss | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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 */