【发布时间】:2018-09-01 22:21:12
【问题描述】:
我更改了悬停时的 p 按钮样式。
我的问题是当按钮状态设置为禁用并且我将其悬停时颜色也会发生变化。
<button pButton type="submit" label="Launch @RT" class="ui-button-success color" [disabled]="groupList.length+ejList.length>0 ? false: true"></button>
然后在 CSS 中:
.ui-button-success.ui-state-disabled, .ui-widget:hover:disabled, .ui-button-success.color{
background-color: white !important;
color: #00965E;
}
.ui-button.ui-button-success:hover
{
background-color: #00965E !important;
color: white;
}
当它被禁用并悬停时,如何取消更改按钮样式。但是当它启用改变颜色时
【问题讨论】: