这个问题很直截了当,尽管我很难找到解决方法.
我正在使用一个jQuery-UI日期 Select 器和一个定制的"iOS风格开/关切换".此切换使用一些绝对定位的元素,这些元素当前显示在我的日期选取器的顶部.
see the ugly circle covering july 6th below...
the dirty way to do this (at least imo) is to write a style in one of my stylesheets, but I'd much rather use some javascript when the picker launches to get this done.
I've already tried
$('.date_field').datepicker();
$('.date_field').datepicker("widget").css({"z-index":100});
and
$('.date_field').datepicker({
beforeShow: function(input, inst) {
inst.dpDiv.css({"z-index":100});
}
});
但每次启动日期 Select 器时,z索引似乎都会被覆盖.
any help is appreciated!