添加适当的 Bootstrap 类以使警报消息可关闭。
<div class="alert alert-success @(17)">
<button class="close" data-dismiss="alert">X</button>
Blah blah blah.
</div>
<div class="alert alert-success alert-dismissible">
<button class="close" data-dismiss="alert">X</button>
Blah blah blah.
</div>