Can I use complex HTML with Twitter Bootstrap's Tooltip?

后端 未结 5 1121
一生所求
一生所求 2020-11-27 11:13

If I check official documentation, I can see a property called HTML:

Name    |    Type       |    default  |    Description
---------------------------------         


        
5条回答
  •  南笙
    南笙 (楼主)
    2020-11-27 11:56

    Another solution to avoid inserting html into data-title is to create independant div with tooltip html content, and refer to this div when creating your tooltip :

    
    

    Hello world

    This way you can create complex readable html content, and activate as many tooltips as you want.

    live demo here on codepen

提交回复
热议问题