在Bootstrap的modal中使用select2出现不能显示下拉框问题解决办法
来源:互联网 发布:启辰d60网络怎么开启 编辑:程序博客网 时间:2024/05/17 06:37
select2-container--open{ z-index:9999999 }
只要添加这个样式就能很好解决这个因z-index引起的问题。我在网上找了很久,都是对于select2-container 改变z-index,但是我在页面其他地方也有用到select2,这样修改会使得其他地方的select2页显示在modal之上,而对select2-container这个选择器加上权重之后就不起作用了,虽然z-index已经是比modal高,这个是为什么我还没找到原因。但是在--open中修改就很好解决了这个问题。附上stackoverflow上的地址。
stackoverflow:http://stackoverflow.com/questions/28781726/select2-select-in-bootstrap-modal
0 0
- 在Bootstrap的modal中使用select2出现不能显示下拉框问题解决办法
- 在BootStrap的modal中使用Select2
- select2在bootstrap modal中不能正常使用问题
- Select2在Bootstrap 3 Modal框中不能搜索的解决方法
- 在BootStrap的modal中使用Select2搜索框无法输入
- angular-bootstrap中modal显示不了的问题解决
- bootstrap modal 在IOS9中不能弹出的问题 IOS 9 bootstrap modal ios 9 noticework
- # 关于 \kartik\select2\Select2 在 Bootstrap 模态框内不能使用智能搜索的问题
- ueditor在bootstrap的modal中显示,高度无法自适应
- select2应用在modal模态框里,select2搜索框不能输入值
- 新建类在ClassView中不能显示问题解决办法
- angularjs使用bootstrap在modal中使用nav并且不让modal外的数据刷新
- bootstrap-如何在modal中使用collapse
- bootstrap datepicker 在bootstrap modal中不显示问题
- bootstrap datepicker 在bootstrap modal中不显示问题
- 在rials 中使用bootstrap 的modal对话框 实现一个弹窗显示多层次内容的方法
- 使用bootstrap select2 的下拉框组件时候的一些技巧
- bootstrap轮播(carousel)图片竖着显示不能轮播的问题解决办法
- 文件权限
- LOG 解析方法(代码来自网络)
- 6、判断用户是否中奖(0106)
- string类的实现
- [java基础]==、equals和hashCode()
- 在Bootstrap的modal中使用select2出现不能显示下拉框问题解决办法
- 【redis】——高级应用(2)
- 话说程序员的职业生(IBM软件集团大中华区总架构师 寇卫东)
- 驱动开发之模块
- 使用指针参数
- 【网站高性能 7】----大型网站架构演化知多少(二)
- Apache配置监听多端口
- 晶振相关指标
- Apache配置多个监听端口和不同的网站目录的简单方法