diff --git a/src/app.scss b/src/app.scss index 723b653..014dca6 100644 --- a/src/app.scss +++ b/src/app.scss @@ -48,6 +48,14 @@ page { padding-bottom: 20px; } +// 小程序原生 button 重置 +// 微信 button 自带 ::after 伪元素绘制灰色描边,tailwind 的 border-0 覆盖不到伪元素, +// 用 Taro 原生 Button + className 控制样式时会多出一圈边框,这里全局去掉。 +// 注意:NutUI Button 的编译产物不是 button 标签,不受此规则影响。 +button::after { + border: none; +} + // 通用工具类 .flex-center { display: flex;