/*style样式中加入scoped(私有化) class前面加/deep/(穿透)*/
<style scoped>
/deep/.uni-input-input{ /*deep样式穿透,直接从底部修改*/
font-size: 18px !important;
}
/deep/button{
font-size: 18px !important;
}
/* 去掉uniapp中button自带的边框 */
/deep/button::after {
border: none
}
</style>
<!--仅用于自己遇到的问题整理,不做它用-->
uniapp 更改原生按钮的样式
最新推荐文章于 2024-05-21 15:38:59 发布