1

我在使用 Bootstrapx clickover 时遇到问题(所有 js 库都已正确链接)

   $(function ()  { 
    $('.userProfile').each(function(index){
        var el=$(this);
        $.get(el.attr('data-load'),function(d){
            el.clickover({html:true,content: d}).clickover();                   
        });
    }); 

   }); 

还有我的html

<p><a href="#" class="userProfile" rel="clickover" data-load="inc/userProfile.inc">

亚历克斯米。为 Marc B 完成了一项任务。

弹出框内容

<a href="#">Alex M.</a>
<span class="label">Volunteer</span>
<button class="btn btn-primary btn-small">Follow</button>
<button class="btn btn-small" data-toggle="button" data-dismiss="clickover">Close</button>

期待得到一些帮助,

谢谢,

伊莎贝尔,

4

1 回答 1

0

Are you sure you are forced to use

el.clickover({html:true,content: d}).clickover(); 

instead of

el.clickover({html:true,content: d}); 

Can you reproduce it on a pastebin?

于 2013-01-22T15:50:13.750 回答