0
我希望側導航從右向左打開。我使用了align屬性並將其設置爲「rtl」,但它不起作用。材質2 - md-sidenav無法從右向左打開
<md-sidenav-container class="example-container">
<div class="example-sidenav-content">
<button type="button" md-button (click)="sidenav.open()">
Open sidenav
</button>
</div>
<md-sidenav align="rtl" #sidenav class="example-sidenav">
Jolly good!
</md-sidenav>
</md-sidenav-container>
鏈接:https://material.angular.io/components/sidenav/overview
好的,謝謝,它的工作原理 – Elliott08
請註明的答案爲 '接受',那麼 – Nehal