How to insert close button in popover for bootstrap

前端 未结 25 2984
忘了有多久
忘了有多久 2020-11-29 20:53

JS:

$(function(){
  $(\"#example\").popover({
    placement: \'bottom\',
    html: \'true\',
    title : \'         


        
25条回答
  •  旧时难觅i
    2020-11-29 21:19

    Put this in your title popover constructor...

    'some text'
    

    ...to get a small red 'x' button on top-right corner

    //$('[data-toggle=popover]').popover({title:that string here})
    

提交回复
热议问题