Ren*_*rra 54 jquery jquery-ui-dialog
我有一个对话框,对话框中有一个datepicker字段.
当我打开对话框并单击datepicker字段时,datepicker面板显示在对话框后面.
我尝试了更多属性:zindex,stack,bgiframe,但没有成功.
有人可以帮帮我吗?
韩国社交协会.
Cra*_*ntz 80
老答案
z-index(注意连字符!)是重要的属性.确保将其设置为大于对话框,并确保将其设置在正确的元素上.我们是这样做的:
#ui-datepicker-div
{
z-index: 1000; /* must be > than popup editor (950) */
}
Run Code Online (Sandbox Code Playgroud)
API变更 - 2010年4月17日
在日期选择器的CSS文件中,找到该项.ui-datepicker并进行更改:
.ui-datepicker { width: 17em; padding: .2em .2em 0; z-index: 9999 !important; }
Run Code Online (Sandbox Code Playgroud)
使用z-index:9999!important; 曾在Firefox 3.5.9(Kubuntu)工作.
Jon*_*tke 18
对于jquery-ui-1.8
<style type="text/css">
.ui-datepicker
{
z-index: 1003 !important; /* must be > than popup editor (1002) */
}
</style>
Run Code Online (Sandbox Code Playgroud)
由于datepicker有一个将z-index设置为1的element.style,因此需要这么做.
| 归档时间: |
|
| 查看次数: |
43945 次 |
| 最近记录: |