用户界面对话框下方的jQuery日期选择器?
看 单击ShowContainer链接后,datepicker组件-第二个输入-显示在UI对话框下方。我应该如何在UI对话框上方显示它?您需要在日期选择器上设置,例如:用户界面对话框下方的jQuery日期选择器?,jquery,jquery-ui,dialog,datepicker,z-index,Jquery,Jquery Ui,Dialog,Datepicker,Z Index,看 单击ShowContainer链接后,datepicker组件-第二个输入-显示在UI对话框下方。我应该如何在UI对话框上方显示它?您需要在日期选择器上设置,例如: .ui-datepicker { z-index:20000; } 应该适合您。您需要在日期选择器上设置,例如: .ui-datepicker { z-index:20000; } 应该适合您。您可以将.ui datepicker的z索引设置为1003 .ui-datepicker { z-index
.ui-datepicker
{
z-index:20000;
}
应该适合您。您需要在日期选择器上设置,例如:
.ui-datepicker
{
z-index:20000;
}
应该适合您。您可以将.ui datepicker的z索引设置为1003
.ui-datepicker
{
z-index: 1003;
}
现在,.ui小部件覆盖的z索引为1001,.ui对话框的z索引为1002。datepicker没有z索引,并且默认值低于其他的z索引。将其设置为更高的z索引,并应显示在对话框上方。您可以将.ui datepicker的z索引设置为1003
.ui-datepicker
{
z-index: 1003;
}
现在,.ui小部件覆盖的z索引为1001,.ui对话框的z索引为1002。datepicker没有z索引,并且默认值低于其他的z索引。如果它是一个旧浏览器(IE6),您可能需要“BGIFrame”插件并设置对话框选项来使用它,如果z索引不起作用?如果它是一个旧浏览器(IE6),您可能需要“BGIFrame”插件并设置对话框选项来使用它,如果z-index不起作用?我也有类似的问题,但是datepicker对话框有一个
style=“z-index:1”
,这让我很头疼
所以我不得不添加!重要的
关键字
.ui-datepicker {
z-index: 1003 !important;
}
我也有类似的问题,但datepicker对话框有一个
style=“z-index:1”
,这让我很头疼
所以我不得不添加!重要的
关键字
.ui-datepicker {
z-index: 1003 !important;
}
我已经通过在JS上添加此项进行了修复
//allow interaction of select2, date and time picker on jQuery UI dialog
$.ui.dialog.prototype._allowInteraction = function(e) {
return !!$(e.target).closest('.ui-dialog, .ui-datepicker, .select2-drop').length;
};
我已经通过在JS上添加此项进行了修复
//allow interaction of select2, date and time picker on jQuery UI dialog
$.ui.dialog.prototype._allowInteraction = function(e) {
return !!$(e.target).closest('.ui-dialog, .ui-datepicker, .select2-drop').length;
};
所有那些推翻z指数的建议都快把我逼疯了<代码>!重要的是是我遗漏的东西所有那些覆盖z-index的建议都让我发疯了<代码>!重要的是我错过的东西