Twitter bootstrap 如何在引导模式窗口中设置键盘:false?

Twitter bootstrap 如何在引导模式窗口中设置键盘:false?,twitter-bootstrap,Twitter Bootstrap,这是我的密码 <li><a data-toggle="modal" href="test1.php" data-target="#myModal">click me 1</a></li> <li><a data-toggle="modal" href="test2.php" data-target="#myModal">click me 2</a></li> <div id="myModal"

这是我的密码

<li><a data-toggle="modal" href="test1.php" data-target="#myModal">click me 1</a></li>
<li><a data-toggle="modal" href="test2.php" data-target="#myModal">click me 2</a></li>

<div id="myModal" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h3 id="myModalLabel">Modal header</h3>
  </div>
  <div class="modal-body">
  </div>
  <div class="modal-footer">
    <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
    <button class="btn btn-primary">Save changes</button>
  </div>
</div>

<script language="javascript" type="text/javascript">
$('#myModal').on('hidden', function () {
    $(this).removeData('modal');
});
</script>
但不起作用,请删除此行

<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
关闭

我跟踪了事件,发现有东西触发了此按钮。

以下是一个HTML解决方案:

<a href="#" data-controls-modal="your_id" data-backdrop="static" data-keyboard="false">


请详细描述
<a href="#" data-controls-modal="your_id" data-backdrop="static" data-keyboard="false">