uniapp button按钮去掉默认样式

有时候要使用uniapp官方提供的客服和分享功能,需要用到button按钮,里面属性open-type正好可以实现这些功能,不得不使用这种方式。

但是这种方式,uniapp官方默认为button按钮加了些样式,自己写的样式也无法进行完全覆盖,所以今天分享一个覆盖官方button按钮的样式

bash 复制代码
button::after {
            border: none;
        }

        button {
            position: relative;
            display: block;
            margin-left: auto;
            margin-right: auto;
            padding-left: 0px;
            padding-right: 0px;
            box-sizing: border-box;
            text-align: center;
            text-decoration: none;
            line-height: 1.35;
            -webkit-tap-highlight-color: transparent;
            overflow: hidden;
            color: #000;
            font-size: 32rpx;
            background-color: #fff;
            width: 100%;
            height: 100%;
        }
相关推荐
天庭鸡腿哥4 分钟前
谷歌出品,堪称手机版PS!
javascript·智能手机·eclipse·maven
_小九16 分钟前
【开源】耗时数月、我开发了一款功能全面【30W行代码】的AI图床
前端·后端·开源
just小千28 分钟前
HTML进阶——常用标签及其属性
前端·html
惜.己29 分钟前
html笔记(一)
前端·笔记·html
Lsx-codeShare32 分钟前
一文读懂 Uniapp 小程序登录流程
前端·javascript·小程序·uni-app
曹牧33 分钟前
HTML实体名称
前端·html
小胖霞35 分钟前
Node+Express+MySQL 后端生产环境部署,实现注册功能(三)
前端·后端
一 乐36 分钟前
农产品电商|基于SprinBoot+vue的农产品电商系统(源码+数据库+文档)
java·前端·javascript·数据库·vue.js·spring boot
云鹤_38 分钟前
【Amis源码阅读】低代码如何实现交互?(上)
前端·低代码