Bootstrap模态没有正确显示 [英] Bootstrap modal not appearing properly
本文介绍了Bootstrap模态没有正确显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
对于删除选项,我使用的是bootstrap模式,但它没有正确显示。
请帮帮我。这是我的代码:
For delete option, I am using a bootstrap modal but it is not visible properly.
Please help me on this. Here is my code :
<td><a href="#basicModal" data-toggle="modal" >Assign</a></td>
这是模态代码,
Here is the modal code,
<div class="modal fade" id="basicModal" tabindex="-1" role="dialog" aria-labelledby="basicModal" aria-hidden="true">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">Basic Modal</h4>
</div>
<div class="modal-body">
<h3>Modal Body</h3>
<label class="control-label">Subject:</label>
<select class="form-control" name="gender" id="gender">
<option value="">---------Select Subject--------</option>
<option>Maths</option>
<option>Science</option>
<option>Social</option>
</select>
<label class="control-label">Teacher:</label>
<select class="form-control" name="gender" id="gender">
<option value="">---------Select Subject--------</option>
<option>Raghavendra M</option>
<option>Santosh</option>
</select>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
我面临的问题是模态窗口没有出现在屏幕中央,也出现在对话框窗口中。我该如何解决这个问题。
The problem I am facing is modal window is not appearing in center of screen and also it is appearing within a dialog window . How can I solve this.
推荐答案
这篇关于Bootstrap模态没有正确显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文