【发布时间】:2018-12-08 03:42:12
【问题描述】:
我遇到的问题是,当我在按钮上添加 ionic 2 gesture(按下)时,它会自动向该按钮添加内联样式。
有没有办法否决它添加的样式?
按钮
<button ion-button (press)="toggleFavourite(sound)" (click)="share(sound.file)"></button>
由于(按下)手势而添加的 CSS。
style="
touch-action: none;
user-select: none;
-webkit-user-drag: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"
【问题讨论】:
-
您可以通过在每个属性后添加
!important来使用自己的 css 否决
标签: html css angular typescript ionic2