bootstrapx-clickover HTML内容?

时间:2013-01-25 17:35:09

标签: javascript jquery html5 twitter-bootstrap

我正在使用Bootstrapx-Clickover

运行此javascript进行点击:

var message = "Access Forbidden.</br> <a href=\"/contact/access\">Request Access!</a>";
$("#spec").clickover({placement:'top', title: "Sensitive information", content: message, width: 170, height: 110});

HTML内容不会呈现:

enter image description here

过去常常使用 bootstrap 2.1 ,但现在我升级到 2.2

有什么想法吗?

1 个答案:

答案 0 :(得分:1)

this issue所述,您需要在点击选项中添加html: true

$("#spec").clickover({placement:'top', title: "Sensitive information", content: message, width: 170, height: 110, html: true});