jQuery UI Examples - Dialog
Opens content in an interactive overlay.
For more details about the dialog widget, see the API documentation Dialog Widget。
Default functionality
A basic dialog window is an overlay positioned in the viewport, separated from the page content by an iframe (just like a select element). It consists of a title bar and a content area, and can be moved, resized, and by default closed via the 'x' icon.
jQuery UI 对话框(Dialog) - 默认功能
这是一个默认的对话框,用于显示信息。对话框窗口可以移动,调整尺寸,默认可通过 'x' 图标关闭。
Animation
You can animate the display of the dialog by specifying an effect for the show/hide properties. You must reference the individual effect file for the effect you want to use.
jQuery UI 对话框(Dialog) - 动画
这是一个动画显示的对话框,用于显示信息。对话框窗口可以移动,调整尺寸,默认可通过 'x' 图标关闭。
Basic modal
A modal dialog prevents the user from interacting with the rest of the page outside the dialog until it is closed.
jQuery UI 对话框(Dialog) - 基本的模态
添加模态覆盖屏幕,让对话框看起来更突出,因为它让页面上其他内容变暗。
Sed vel diam id libero rutrum convallis. Donec aliquet leo vel magna. Phasellus rhoncus faucibus ante. Etiam bibendum, enim faucibus aliquet rhoncus, arcu felis ultricies neque, sit amet auctor elit eros a lectus.
Modal confirmation
Confirming an action may be destructive or meaningful. Set the modal option to true, and specify the primary and secondary user actions through the buttons option.
jQuery UI 对话框(Dialog) - 模态确认
这些项目将被永久删除,并且无法恢复。您确定吗?
Sed vel diam id libero rutrum convallis. Donec aliquet leo vel magna. Phasellus rhoncus faucibus ante. Etiam bibendum, enim faucibus aliquet rhoncus, arcu felis ultricies neque, sit amet auctor elit eros a lectus.
Modal form
Use a modal dialog to ask the user for data in a multi-step process. Embed form markup in the content area, set the modal option to true, and specify the primary and secondary user actions through the buttons option.
jQuery UI 对话框(Dialog) - 模态表单
所有的表单字段都是必填的。
Modal message
Use a modal dialog to confirm information and actions before the next step is taken. Set the modal option to true, and specify the primary and secondary user actions through the buttons option to specify the primary action (Ok).
jQuery UI 对话框(Dialog) - 模态消息
您的文件已经成功下载到文件夹中。
当前使用存储空间的 36%。
Sed vel diam id libero rutrum convallis. Donec aliquet leo vel magna. Phasellus rhoncus faucibus ante. Etiam bibendum, enim faucibus aliquet rhoncus, arcu felis ultricies neque, sit amet auctor elit eros a lectus.