【发布时间】:2018-03-14 10:52:07
【问题描述】:
我在我的 angular2 应用程序中使用 Primeng。 我需要一个简单的按钮,并希望在按钮悬停时更改背景颜色。谁能帮助如何实现这一目标?请在下面找到我的代码:
<button pButton type="button" label="{{item}}" class="reasonButton"></button>
.reasonButton{
background-color:#ececec;
color:#000;
}
【问题讨论】:
-
.reasonButton:hover{ 背景颜色:#fff !important; }