JQuery mobile,有没有办法防止SELECT框变成对话框页面?

发布于 2024-12-29 09:24:22 字数 159 浏览 0 评论 0原文

所以我有一个动态填充的选择框。我发现一旦 SELECT 变得比页面长,它就会自动变成对话框列表视图......这太可怕了!

发生这种情况时,当对话框关闭时页面会刷新,整个页面会重新开始......

有没有人经历过这种情况,你知道如何关闭它吗?

谢谢! 托德

SO I have a select box that I fill dynamically. I discovered that once the SELECT gets longer than the page, it automatically becomes a dialog listview.... which is TERRIBLE!

When this happens, the page refreshes when the dialog is closed and my whole page starts over....

Has anyone experienced that and do you know how to shut it off?

Thanks!
Todd

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

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

发布评论

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

评论(1

じее 2025-01-05 09:24:22

您可以使用本机的外观和感觉吗?

原生表单元素和按钮

虽然框架自动将表单元素和按钮增强为触摸输入
优化控件以简化开发,很容易告诉 jQuery
移动设备可以让这些元素保持独立,从而实现标准的原生控制
可以用它代替。

data-role="none" 属性添加到任何表单或按钮元素
告诉框架不要应用任何增强的样式或脚本。这
下面的示例都具有此属性来演示
影响。您可能需要编写自定义样式来布置表单
控件,因为我们尝试保持所有默认样式不变。

You could use the native look and feel?

Native form elements & buttons

Although the framework automatically enhances form elements and buttons into touch input
optimized controls to streamline development, it's easy to tell jQuery
Mobile to leave these elements alone so the standard, native control
can be used instead.

Adding the data-role="none" attribute to any form or button element
tells the framework to not apply any enhanced styles or scripting. The
examples below all have this attribute in place to demonstrate the
effect. You may need to write custom styles to lay out your form
controls because we try to leave all the default styling intact.

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