這是我的
uj5u.com熱心網友回復:
您的模態 HTML 是組件的一部分。這意味著視圖封裝像往常一樣應用到它。
所以設定它的樣式就像設定“普通”HTML 一樣。
https://stackblitz.com/edit/angular-9dvf1z-rzp7f3?file=src/app/app.component.ts,src/app/app.component.html,src/app/app.component.scss
請注意,對于第二種樣式,您必須使用::ng-deep,因為這是庫組件內的跨度。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/480848.html
上一篇:計算以點小數分隔符結尾的兩個數字
