![](/img/trans.png)
[英]Using angular2/4 material, How to use mat-chip with text next to chips on each row?
[英]How to replace next button with mat-chip in Angular Material stepper?
我只希望按鈕看起來像一個材料芯片(而不是實際的材料芯片),則可以從下一個按鈕中刪除“ mat-button”並添加自己的類,例如“ next_btn”:
<button class="next_btn" matStepperNext>Next</button>
然后,您可以對按鈕進行樣式設置,使其看起來像芯片:
button.next_btn {
padding: 7px 12px;
border-radius: 16px;
min-height: 32px;
background-color: #e0e0e0;
color: rgba(0,0,0,.87);
box-shadow:none;
border:none;
cursor: pointer;
outline:none;
}
button.next_btn:focus
{
outline:none;
}
這里的例子。
將按鈕插入芯片內部如何? 並管理外觀...在此處查看演示
HTML :
<mat-chip-list>
<mat-chip><button mat-button matStepperPrevious>Back</button></mat-chip>
<mat-chip><button mat-button matStepperNext>Next</button></mat-chip>
</mat-chip-list>
CSS :
mat-chip{padding:0;}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.