:host ::ng-deep .className{
新的样式......
}
//举例
:host ::ng-deep .ant-radio-button-wrapper {
width: 20% !important;
padding-left: 9% !important;
}
:host 表示选择器,选择当前的组件。
::ng-deep 可以忽略中间className的嵌套层级关系。直接找到你要修改的className。
:host ::ng-deep .className{
新的样式......
}
//举例
:host ::ng-deep .ant-radio-button-wrapper {
width: 20% !important;
padding-left: 9% !important;
}
:host 表示选择器,选择当前的组件。
::ng-deep 可以忽略中间className的嵌套层级关系。直接找到你要修改的className。