Yii2 模态框遮挡select2下拉列表问题
作者:互联网
问题:模态框遮挡select2下拉列表
解决方案:
$css = <<<CSS
.select2-drop {
z-index: 10050 !important;
}
.select2-search-choice-close {
margin-top: 0 !important;
right: 2px !important;
min-height: 10px;
}
.select2-search-choice-close:before {
color: black !important;
}
/*防止select2不会自动失去焦点*/
.select2-container {
z-index: 16000 !important;
}
.select2-drop-mask {
z-index: 15990 !important;
}
.select2-drop-active {
z-index: 15995 !important;
}
CSS;
$this->registerCss($css,['type'=>'text/css']);
标签:模态,index,drop,important,close,Yii2,select2,css 来源: https://www.cnblogs.com/gavinguo/p/11580519.html