简体   繁体   中英

How to add tooltip on top of font-awesome icon?

I recently upgraded my font-awesome and ng-bootstrap, after which the tooltip has stopped working. Here's the code-

<i class="fa fa-info-circle px-1" aria-hidden="true" [ngbTooltip]="'Tooltip which shows on top'"></i>

The same code was working earlier before the update. Can anyone help me with this issue?

This should not be that hard have you tried the way Angular Bootstrap shows?

<button type="button" class="btn btn-outline-secondary me-2" placement="top" ngbTooltip="Tooltip on top">
  <i class="fa fa-info-circle px-1" aria-hidden="true"></i>

Looks like you missing placement?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM