我正在使用fxLayout,还使用了材质菜单。下拉菜单不在菜单按钮下方。我也该如何使用下拉菜单内容制作flex?
<div fxLayout="row" fxLayoutAlign="space-between center" >
<div fxLayoutAlign="center center">
<mat-icon>home</mat-icon><span>Home</span>
</div>
<div>
<button mat-button [matMenuTriggerFor]="menu">
<span >Activity</span>
<mat-icon>arrow_drop_down</mat-icon>
</button>
<mat-menu #menu >
<button mat-menu-item>Item 1</button>
<button mat-menu-item>Item 2</button>
</mat-menu>
</div>
<div>
user
</div>
</div>