【发布时间】:2015-04-24 22:32:50
【问题描述】:
我想知道是否可以将<a href="mailto:someone@yoursite.com">Email Us</a> 添加到自定义引导箱中?我希望用户可以选择单击电子邮件链接。我目前正在使用:
function dbError() {
var box = bootbox.dialog({
message: "There is currently a problem when trying to connect to the Database. Please try again or contact "'<a href="mailto:someone@yoursite.com">Email Us</a>'" to resolve this issue if it persists.",
title: "Database Error"
});
box.find('.modal-title').css({ 'color' : 'red' });
};
如果我删除 <a href="mailto:someone@yoursite.com">Email Us</a>,这可以正常工作。任何帮助或建议表示赞赏。谢谢!
【问题讨论】:
-
包含一些演示 html 代码会很有用,这样其他人就可以轻松复制/粘贴您的示例以加快周转速度。
标签: html twitter-bootstrap-3 bootbox