/* 罪魁祸首 */
/**
* Correct the inability to style clickable types in iOS and Safari.
*/
button,
[type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
}
/** 解决方案 */
button, [type="button"], [type="reset"], [type="submit"] {
-moz-appearance: none;
-webkit-appearance: none;
}
tailwind.css 对于小程序按钮样式的影响,前两天发现小程序按钮的默认样式一直去不掉,今天才发现是因为 tailwind.css 导致的。 他有一段上面那样的 css 采用了系统自定义的按钮样式导致你怎么覆盖 button::after 都没有用
4 个评论
要回复文章请先登录或注册
崮生 (作者)
1***@qq.com
崮生 (作者)
m***@qq.com