我正在使用Bootstrap创建一个提交客户端信息的模式。但我发现Bootstrap下拉模式隐藏在模式后面。我搜索一些文件,但它们都没有用。我使用backbonejs创建<span>,它将调用ajax从API获取所有状态名称。但它应该显示下拉菜单。以下是主要代码:
<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;
}谢谢
发布于 2016-08-24 15:53:21
向下拉列表中添加Z索引。
https://stackoverflow.com/questions/39127192
复制相似问题