开启互动的覆盖层(overlay)内容。
基本的对话框视窗是位于视埠内的一个覆盖层,这个覆盖层受透过框架效应的页面内容(像下拉元素)保护,有一个主题栏跟内容区域,预设可以被移动、调整大小跟使用’x’图标来关闭。
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<!doctype html><html lang="en"><head> <meta charset="utf-8"> <title>jQuery UI Dialog - Default functionality</title> <link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css"> <script src="//code.jquery.com/jquery-1.9.1.js"></script> <script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script> <link rel="stylesheet" href="/resources/demos/style.css"> <script> $(function() { $( "#dialog" ).dialog(); }); </script></head><body><div id="dialog" title="Basic dialog"> <p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p></div></body></html> |
想要多学一点对话框这个小工具吗?试试API文件。