自动完成建议列表错误的z-index,我怎样才能改变? [英] autocomplete suggestion list wrong z-index, how can i change?

查看:169
本文介绍了自动完成建议列表错误的z-index,我怎样才能改变?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

看来,我的自动完成列表中的< z-index的比我的网站的某些元素,因此它的暴露下,我应怎样编辑类?

seems that my autocomplete list its < z-index than some elements of my site so its under exposed, what class shall i edit?

与editCSS我播种的类,并添加(z索引我的网站,但很少吊环并不影响为1)

with editCSS i sow those class, and add (z-index of my site but few tings doesn't affect is 1)

.ui-corner-all, .ui-menu-item, #ingredientes_s.ui-autocomplete-input{z-index: 20;}

但剧照同样的问题..

but stills same problem..

推荐答案

jQuery UI的自动完成选项列表通过采取文字输入的z-index它被附加到,并增加了1到该值计算的Z-index值。

jQuery UI Autocomplete options list calculates its z-index value by taking the z-index of the text input it's being attached to and adds 1 to that value.

所以,你可以给999的z-index到文本输入自动完成将有1000的z-index值

So you can give a z-index of 999 to the text input the autocomplete will have a z-index value of 1000

http://bugs.jqueryui.com/ticket/5489

<input type="text" class="autocomplete" style="z-index:999;" name="foo">

这篇关于自动完成建议列表错误的z-index,我怎样才能改变?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆