Changing the width of Bootstrap popover

后端 未结 23 1528
北恋
北恋 2020-11-27 10:51

I am designing a page using Bootstrap 3. I am trying to use a popover with placement: right on an input element. The new Bootstrap ensures that if you use

23条回答
  •  -上瘾入骨i
    2020-11-27 11:28

    With the help of what @EML has described above regarding popover on modal windows and also the code shown by @2called-chaos, this is how I solved the problem.

    I have a icon on the modal which when clicked should the popup

    My HTML

    
    

    My Script

        $('[rel=popover]').popover({
            placement: 'bottom',
            html: 'true',
            container: '#name-of-modal-window .modal-body'
        }).on("show.bs.popover", function () { $(this).data("bs.popover").tip().css("max-width", "600px"); });
    

提交回复
热议问题