解决办法:
把页面中的 tabindex="-1" 删掉, 或者值改为1
代码片段:
<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>
时间: 2024-10-10 17:51:24