-2

我想制作 Bootstrap 模式并使用引导警报确认对话框。

那么你能请任何人给我如何实施的步骤吗?

我需要添加任何js文件吗?

我不想制作与引导程序给出的简单标题消息相同的内容,我想用模态制作...

如果有人知道请告诉我..

4

1 回答 1

0

您需要为 modal + alert 自定义某种引导程序

"<div id=\"myModal\" class=\"modal hide fade custom-modal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">"+
                                                       "<div class=\"alert alert-danger fade in custom-alert\">"+
                                                    "<strong>Please select atleast one favourite user.</strong>"+
                                                    "</div><div class=\"modal-footer custom-modal-footer\">"+
                                                    "<button class=\"Custom-alert-close\" data-dismiss=\"modal\" aria-hidden=\"true\">Ok</button></div></div>";

//css

.custom-modal{padding:0%!important; margin-bottom :0% !important; top:30%!important}
.custom-alert{margin-bottom :0% !important;padding:6% !important;text-align:center;}
.custom-modal-footer{background-color:#F2DEDE !important;border-radius:0 0 6px 6px !important;padding:7px 15px 15px !important;text-align:center!important; border-top:0px!important;}
.Custom-alert-close{background-color:#B94A48;border-radius:4px 4px 4px 4px;padding:4px 12px; border:0px;color:#FFF;}
于 2013-09-11T22:37:30.977 回答