增加自动完成滚动条的大小

发布于 2024-08-28 08:17:34 字数 175 浏览 5 评论 0原文

我正在为触摸屏设备创建一个应用程序。自动完成功能可用的滚动条的大小非常用户友好。如何增加自动完成中滚动条的大小。 JQuery 自动完成

Geetha

I am creating a application for touchscreen device. The size of the scrollbar available with autocomplete is so user friendly. How to increase the size of the scrollbar in the autocomplete. JQuery autocomplete

Geetha

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

三人与歌 2024-09-04 08:17:34

尝试设置scrollHeight选项。我建议使用 jQuery UI Autocomplete 来代替,因为它更加灵活(我最近做了转变)。

Try setting the scrollHeight option. I would suggest using the jQuery UI Autocomplete instead, as it's much more flexible (I recently made the switch).

愁以何悠 2024-09-04 08:17:34

您可以通过修改 .ui-autocomplete 的高度来实现此目的。如果列表中有固定数量的项目,那么您可以通过设置属性来设置。

如果您的列表有所不同,那么您可以使用 max-height 属性。这在除 IE 之外的所有最新浏览器中都可以正常工作。在 IE 中,如果您提到 doctype ie 标准模式,它也可以工作

You can achieve this by modifying the height of .ui-autocomplete . If u have fixed number of items in the list then You can set this by setting property.

If your list varies , Then you can use max-height property . This works fine in all latest browsers except in IE. In IE also it works if you mention doctype i.e standards mode

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文