jQuery自动完成UI结果导航与箭头键问题 [英] JQuery autocomplete ui results navigation with arrow keys issue

查看:95
本文介绍了jQuery自动完成UI结果导航与箭头键问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设法使jquery自动完成ui正常工作,并且能够正确设置链接,唯一的问题是,必须单击箭头,而不是能够单击建议的结果.键来浏览它们.我进一步添加了jQuery UI css包. queryui/1.11.4/jquery-ui.min.css

I've managed to get the jquery autocomplete ui to work and I've been able to set a link correctly, the only issue is that, instead of being able to click on the suggested results, you have to use the arrow keys to navigate through them. I've further added the jQuery UI css package. queryui/1.11.4/jquery-ui.min.css

推荐答案

图像看起来像您有CSS z-index问题,请尝试将其添加到CSS文件中:

The images look like you have an CSS z-index problem, try to add this to your CSS file:

.ui-autocomplete.ui-widget-content { 
    z-index: 9999;
}

这应该可以解决问题.

您的用户信息覆盖在建议列表上,因此您无法单击这些项目.这些信息是绝对的还是相对的?

Your user information overlays the suggestionlist, so you are not able to click the items. Are these information absolute or relative positioned?

这篇关于jQuery自动完成UI结果导航与箭头键问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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