我想在 angular mat 選項卡中的圖示下放置圖示文本
<mat-toolbar>
<span ></span>
<button type="button" (click)="printBillOfLading()" mat-icon-button>
<mat-icon>print</mat-icon>
<!-- I NEED TO PUT PRINT LABLE IN HERE -->
</button>
</mat-toolbar>

uj5u.com熱心網友回復:
你真的想要按鈕內的文本嗎?我的意思是圓圈內的xt?或者也許在外面?
問題是,必須擴展按鈕,以便您的文本可以適合該按鈕。否則,由于溢位,它將不可見。我建議您將文本放在外面,然后將(單擊)添加到您的容器中。
CSS:
.example-button-container{
display: flex;
justify-content: center;
flex-direction: column;
width: 120px;
}
HTML:
<div >
<button mat-fab color="primary" aria-label="Example icon button with a delete icon">
<mat-icon>delete</mat-icon>
</button>
<span>yourtext</span>
</div>
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/465673.html
