【发布时间】:2020-09-14 06:18:26
【问题描述】:
我想在悬停时更改角垫按钮的背景颜色。
html
<button style="font-family: 'Nunito'" button mat-button color="primary">Button</button>
css:
button.mat-raised-button:hover {
background-color: 'red';
}
但它不工作,我不知道为什么?
【问题讨论】:
-
使用
background-color: red !important..我认为它会帮助你..
标签: html css angular-material