使用button按鈕作為關(guān)閉按鈕
使用button按鈕(在警告框外面的按鈕)作為關(guān)閉按鈕,當(dāng)關(guān)閉了本身提示框后,仍然停留在頁面,再次點(diǎn)擊,頁面上所有文字,包括按鈕本身都消失了,為什么????
<h3>使用button按鈕作為關(guān)閉按鈕</h3>
<div class="alert alert-warning" role="alert" id="myAlert">
<h4>謹(jǐn)防被騙</h4>
<p>請(qǐng)確認(rèn)您轉(zhuǎn)賬的信息是你的親朋好友,不要輕意相信不認(rèn)識(shí)的人...</p>
</div>
<button type="button" data-target="#myAlert" class="btn btn-danger" data-dismiss="alert" data-target="#myAlert">關(guān)閉</button>
2015-12-23
百度,谷歌等提供的bootstrap存在差異性,你可以試試百度的,我試過發(fā)現(xiàn)不會(huì)出現(xiàn)全部關(guān)閉這樣的問題,故說明是bootstrap本身的問題