【发布时间】:2019-09-01 11:01:39
【问题描述】:
下面的代码不起作用。我尝试对没有“垫升按钮”属性的按钮使用相同的样式并且它可以工作,所以我认为这可能是一些问题。
如何为垫子按钮添加边框和边框颜色?
添加.html
<button mat-raised-button class="light-button" [routerLink]="[addLink]">
Add
</button>
styles.css
.light-button {
height: 50px;
width: 150px;
font-size: 110%;
border-style: solid;
border-color: blue;
background-color: white;
}
【问题讨论】: