2013-02-04 57 views
3

我愿做这样的事情:我可以在引导弹出窗口中放置链接吗?

$('.UofTennesseeKnox').popover({ 
    'selector': '', 
    'placement': 'bottom', 
    'title': '<a href="home.html">University of Tennessee-Knoxville</a>', 
    'content': 'Facilities Services Department 2233 Volunteer Boulevard, Room 203 Knoxville, TN 37996-3010', 
    }); 

但“标题”的整体价值将出现在页面上,包括标签。有没有简单的方法来做到这一点,还是我需要使用不同的弹出脚本?

回答

5
 $('.UofTennesseeKnox').popover({ 
     'selector': '', 
     'placement': 'bottom', 
     'title': '<a href="home.html">University of Tennessee-Knoxville</a>', 
     'content': 'Facilities Services Department 2233 Volunteer Boulevard, Room 203 Knoxville, TN 37996-3010', 
     'html': 'true' 
     }); 

咄.....

+0

请不要打扰。我发现在插入到我的html页面后,我的弹出框缺少连接。谢谢。 –