0
我使用Bootstrap創建提交客戶端信息的模式。但我發現Bootstrap模態下拉隱藏在模態後面。我搜索一些文件,但沒有一個可以工作。我使用backbonejs來創建<span>
,它會調用ajax從API獲取所有的狀態名稱。但它應該顯示一個下拉菜單。 下面是主要代碼:Boostrap Modal Drop Down隱藏在Modal後面
<div class="modal fade" id="clientinfoForm" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h2 class="modal-title" id="myModalLabel">Client Info</h2>
</div>
<div class="modal-body">
<form id="InfoRequestForm" class="responsive-form" method="POST">
//The Problem Codes here, it is a input field to let client
//enter the state information and autocomplete through drop down menu
<div class="col-sm-8 col-xs-6">
<label>State*</label>
<input name="state" id="state" type="text" class="large state" value="" />
<span role="status" aria-live="polite" class="ui-helper-hidden-accessible">1 result is available, use up and down arrow keys to navigate.</span>
<input type="hidden" class="stateId" value="" />
<input id="stateName" type="hidden" value="" />
</div>
「UI輔助隱藏可訪問」是一類我創建:
.ui-helper-hidden-accessible {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
感謝
你說得對,爲我添加z-index作品。 –