問題由于/deep/、>>>和已被棄用,在桌面上減少最小寬度為160px::ng-deep的寬度的正確方法是什么?mat-tab-label沒有在主要覆蓋它styles.css我仍然希望將 Material Tabs 的這種自定義樣式限定在父組件范圍內(nèi)。材料規(guī)格聲明Fixed tabs display all tabs on one screen, with each tab at a fixed width.
The width of each tab is determined by dividing the number of tabs by the screen width.
They don’t scroll to reveal more tabs; the visible tab set represents the only tabs available.然而,這并不完全正確,在我的例子中,max-width我的父組件設(shè)置為320px,這大致允許每個106pxmat-tab-label。編輯 1由于關(guān)注點分離, Angular Material 文檔提倡的Add the overriding style to your global stylesheet. Scope the selectors so that it only affects the specific elements you need it to.正是我想要避免的
減少 Angular Material 標簽標簽寬度的正確方法?
BIG陽
2023-02-24 15:28:09