bootstrap两个模态框弹出时,第一个模态框的input获取不到焦点

1.清除tabindex='-1', tabindex 属性规定元素的 tab 键控制次序(当 tab 键用于导航时)。 

(1).当浏览者使用TAB键在网页控件中移动时,将首先移动到具有最小tabIndex属性值的控件上,最后在具有最大tabIndex属性值的控件上结束移动
(2).属性值相同时,以空间在htmL代码中的出现顺序为准,
<div id="myModal" class="modal hide fade" 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">Panel</h3>
  </div>
<div class="modal-body" style="max-height: 800px">

  

posted @ 2018-09-12 15:09  牛牛牛牛牛牛牛牛  阅读(406)  评论(0编辑  收藏  举报