jQuery mobile,有没有一种方法可以防止SELECT框成为对话框页面? [英] JQuery mobile, is there a way to prevent the SELECT box from becoming a dialog page?

查看:121
本文介绍了jQuery mobile,有没有一种方法可以防止SELECT框成为对话框页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我有一个动态填充的选择框.我发现,一旦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?

谢谢! 托德

推荐答案

您可以使用本机外观吗?

You could use the native look and feel?

本机表单元素&按钮

尽管该框架会自动将表单元素和按钮增强为触摸输入 优化控件以简化开发,很容易告诉jQuery 移动使这些元素保持独立,因此是标准的本机控制 可以代替.

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.

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

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.

这篇关于jQuery mobile,有没有一种方法可以防止SELECT框成为对话框页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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