如何禁用ionic 4中的离子按钮阴影? [英] How to disable ion-button shadow in ionic 4?

查看:63
本文介绍了如何禁用ionic 4中的离子按钮阴影?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在ionic 4中将ion-button的box-shadow属性设置为none,那么如何为单个按钮和所有按钮同时设置呢?

I can't set the box-shadow property of ion-button to none in ionic 4, so how can I do that for a single button and for all the buttons at once ?

推荐答案

 <ion-button  class="main-button"  >Get Started</ion-button>


    .main-button{
    --box-shadow:none;
 }

CSS自定义属性

-盒子阴影

-背景

-颜色

此链接中有CSS自定义属性的完整列表 https://ionicframework.com/docs/api /button

There is whole list of CSS Custom Properties in this link https://ionicframework.com/docs/api/button

这篇关于如何禁用ionic 4中的离子按钮阴影?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆