Is it possible to use a div as content for Twitter's Popover

后端 未结 8 1402
一向
一向 2020-11-28 01:00

I am using twitter\'s bootstrap\'s popover here. Right now, when i scroll over the popover text a popover appears with just text from the \'s da

8条回答
  •  不知归路
    2020-11-28 01:46

    Building on jävi's answer, this can be done without IDs or additional button attributes like this:

    http://jsfiddle.net/isherwood/E5Ly5/

    
    
    My first popover content goes here.
    My second popover content goes here.
    My third popover content goes here.
    $('.popper').popover({ container: 'body', html: true, content: function () { return $(this).next('.popper-content').html(); } });

提交回复
热议问题