垂直滚动条无缘无故地出现在角形材料2中

问题描述 投票:0回答:1

我正在尝试使用模态材料2来实现包含选项卡的模态对话框。但是它无缘无故地显示了垂直和水平滚动条。有人可以帮忙删除垂直和水平滚动条。

enter image description here

这里是stackblitz链接

https://stackblitz.com/edit/matdialog-directives-demo-xnfx28?file=app%2Ffile-name-dialog.component.html

html angular css angular-material2
1个回答
-1
投票

我仅通过从代码中删除mat-dialog-contentmat-dialog-actions标签来解决此问题。它起作用了,但是对于一个小屏幕,它不显示对话框。

© www.soinside.com 2019 - 2024. All rights reserved.