崮生
崮生
  • 发布:2020-04-18 09:34
  • 更新:2021-01-20 15:55
  • 阅读:2624

tailwind.css 对于小程序按钮样式的影响

分类:uni-app
/* 罪魁祸首 */  
/**  
 * 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 都没有用

》》》》 原文地址
》》》》 demo代码

崮生的 uni-app 最佳实践

1 关注 分享
1***@qq.com

要回复文章请先登录注册

崮生

崮生 (作者)

回复 1***@qq.com :
刚刚写了个 demo https://github.com/2234839/uni_app-demo/releases/tag/v0.1
2021-01-20 15:55
1***@qq.com

1***@qq.com

大佬求教配置
2021-01-15 09:52
崮生

崮生 (作者)

回复 m***@qq.com :
你解决了吗,还没有的话我待会写个 uni-app 的 demo 给你
2020-11-16 11:11
m***@qq.com

m***@qq.com

求教一下你是怎么在uniapp中引入tailwindcss的呀,我怎么试都不成功
2020-11-12 16:58