select2在modal对话框中不正常问题解决方案
1.select2.css中增加样式,使下拉框显示出来
.select2-container--open{
z-index: 9999;!important;
}
2.在html页面中添加
<style type="text/css"> .select2-container--open{ z-index:9999999 } </style>
3.modal对话框的div中删除tabindex="-1"属性
我只用了第二种,