[英]How to override Prime ng styles
如何改变风格
.p-dialog .p-dialog-footer button {
margin: 0 1rem 0 0 !important;
width: auto !important;
}
我这样写,但它不起作用
:host ::ng-deep .p-dialog .p-dialog-footer button {
width: 2.5rem !important;
}
在原始width
中声明为!important
。 那么你的覆盖也必须是!important
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.