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

后端 未结 5 1095
一生所求
一生所求 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:58

    set "html" option to true if you want to have html into tooltip. Actual html is determined by option "title" (link's title attribute shouldn't be set)

    $('#example1').tooltip({placement: 'bottom', title: '

    par

    ', html: true});

    Live sample

提交回复
热议问题