Is it possible to add html inside a title attribute?

前端 未结 8 1673
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-30 14:57

Is there a way to put actual html code inside a title attribute on a table row element? My goal is to pop-up not only text but some info-graphics along with it, so a mouseo

8条回答
  •  南笙
    南笙 (楼主)
    2020-11-30 15:50

    Using Bootstrap Tooltips one can do the following

    this has an html supported tooltip

    for me it happens automatically but you might need to trigger it with javascript.

    $(function () { $('[data-toggle="tooltip"]').tooltip() })

    docs

提交回复
热议问题