Google Chromeを使用しています。
Twitter Bootstrapを使用すると、簡単なアラートを追加したいと思いますが、残念ながらalertはxを押すと解除されません。Twitter Bootstrapを使用してアラートを閉じても機能しませんか?
はここalert文書に基づいて私のコードです:
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascript"></script>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
</head>
<body>
<div class="alert">
<button type="button" class="close" data-dismiss="alert">×</button>
<strong>Warning!</strong> Best check yo self, you're not looking too good.
</div>
</body>
</html>
そして、私も試してみました:
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascript"></script>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
</head>
<body>
<div class="alert">
<a href="#" class="close" data-dismiss="alert">×</a>
<strong>Warning!</strong> Best check yo self, you're not looking too good.
</div>
</body>
</html>
をそれを却下するために欠けていますか?
bootstrap.jsを完全に忘れてしまったので、奇妙なことはありません:) – davidkonrad
これはうまくいきます...ありがとうございました:) ...あなたの答えを増やすことができます:) –
心配しないでくださいちょうど典型的な失敗 - 常に起こっています:) – davidkonrad