Twitter 부트 스트랩과 함께 닫기 버튼과 함께 경고 메시지를 표시하려고합니다. 하지만 Chrome에서는 작동하지 않습니다. 그래서 jsFiddle : http://jsfiddle.net/6vD5j/3/을 만들었지 만, 이상하게도 jsFiddle은 작동하지 않습니다.부트 스트랩의 닫기 버튼이 작동하지 않습니다.
<div class='alert alert-error'>
<button type='button' class='close' data-dismiss='alert'>×</button>
Test
</div>
나는 잃어 버렸으므로 도와주세요. 내가 크롬에 로컬로 실행하면
[편집], 그것은 작동하지 않습니다
<?php echo "<link href='http://twitter.github.com/bootstrap/assets/css/bootstrap.css' rel='stylesheet' media='screen'>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js'></script>
<script src='http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js'></script>
<div class='alert alert-error'>
<button type='button' class='close' data-dismiss='alert'>x</button>
Test
</div>";
?>
당신이로드나요 bootstrap.js :
html로는 동일? – Pigueiras
예, 내 Jsfiddle에서와 같이. – Arnaud