【发布时间】:2017-04-20 14:46:03
【问题描述】:
我正在尝试让我的警报对齐以在我的输入字段旁边弹出。
<div class="container">
<input type="text" id="barcode" autocomplete="off"/><div id = "alert_placeholder"></div>
</div>
我通过 ajax 调用来调用警报。
function bulkConfirm(text) {
var response = '';
$.ajax({ type: "GET",
url: ("https://"+environment+"/nb/"+user+"/confirm/"+text),
headers: { 'Authorization': authorization},
async: true,
success : function(data)
{
$('#alert_placeholder').html("<div class='alert alert-success alert-dismissable fade in'><a href='#' class='close' data-dismiss='alert' aria-label='close'>×</a><span class='glyphicon glyphicon-ok' aria-hidden='true' style='padding-right:5px;'></span><strong>'Success!'</strong>"+data+"</div>");
skipUpdate = 1;
updateScans();
}
});
}
【问题讨论】:
-
所有这些元素的现有
css是什么?
标签: css twitter-bootstrap alerts