最佳答案
您可以使用属性 tooltipClass 更改样式以及新类(class)的风格。
<button type="button" ngbTooltip="Upload new document" tooltipClass="my-custom-class">
<img src="plus_button.jpg">
</button>
.my-custom-class .tooltip-inner {
background-color: lightblue;
}
.my-custom-class .arrow::before {
border-top-color: lightblue;
}
关于css - 以 Angular 将自定义样式应用于 ngbtooltip,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70569817/