![](/img/trans.png)
[英]Getting the position of an element inside an Angular Material Dialog Container
[英]How to position the angular material tabs edge to edge inside the angular material dialog in mobile view?
I have been trying to position the angular material tabs inside the angular material dialog but I am facing some issues, well they are positioned edge to edge in a web view inside a dialog but I cannot position them the similar way in a mobile view . 通常,當在移動視圖和 web 視圖中的對話框外部使用時,mat-tab 是邊對邊定位的,但在 angular 材質對話框中使用它們時情況不同。 下面是我得到的 output
如您所見,它們的選項卡及其內容不是邊緣到邊緣的,右側有一些空白
我還將 stackblitz 鏈接添加到代碼中。 該鏈接可能無法以隱身模式打開,因此請在普通瀏覽器中打開它 window
https://stackblitz.com/edit/angular-murusn?file=package.json
幫助將不勝感激!
給你 go...
更改以下內容:
.mat-dialog-container {
padding: 0;
}
.mat-dialog-title {
padding: 24px 24px 0 24px;
}
.mat-dialog-content {
margin: 0;
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.