Angular ng引导程序不显示工具提示,尽管遵循了此问题其他答案中的说明

Angular ng引导程序不显示工具提示,尽管遵循了此问题其他答案中的说明,angular,ng-bootstrap,Angular,Ng Bootstrap,在。按照问题答案中的说明操作不起作用。它一定是非常明显的东西,但我看不到。它显示了带有“不透明度:0”的工具提示,因此我们的眼睛看不到它。添加“tooltipClass”属性并添加“不透明度:1;”去那个班。例如: add-word.component.html: <button type="submit" class="btn btn-success" [disabled]="!wordForm.form.valid" placement="bottom" ngbTooltip="U

在。按照问题答案中的说明操作不起作用。它一定是非常明显的东西,但我看不到。

它显示了带有“不透明度:0”的工具提示,因此我们的眼睛看不到它。添加“tooltipClass”属性并添加“不透明度:1;”去那个班。例如:

add-word.component.html:

  <button type="submit" class="btn btn-success" [disabled]="!wordForm.form.valid" placement="bottom" ngbTooltip="Use this to add word to learn later" tooltipClass="opacity-1">Learn Later</button>
  <button type="submit" class="btn btn-success" [disabled]="!wordForm.form.valid" (click)="learn()" placement="bottom" ngbTooltip="Use this to add word you've already learned" tooltipClass="opacity-1">I've Learned It</button>

你能发布错误信息和代码而不是链接吗?谢谢!这是一个奇怪的默认值。同意,但对于其他一些用例可能需要它。
.opacity-1 { opacity: 1; }