0
点赞
收藏
分享

微信扫一扫

Angular4_引用第三方组件库改变其组件样式

8052cf60ff5c 2023-03-05 阅读 53


​Make the CSS:​

.ngx-select__choices {
width: auto !important;
}

And... Make it out of a component. Or make it with /deep/, but it is deprecated now:



// 已弃用。。但是可以用。。。

// :host /deep/.ngx-select__choices {
// width: auto !important;
// }

:host ::ng-deep .ngx-select__choices {
width: auto !important;
}



举报

相关推荐

0 条评论