案例:jQuery UI案例     状态:可编辑再运行    进入横版
AخA
<p>Sed vel diam id libero <a href="//www.w3xue.com">rutrum convallis</a>. 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.</p>
 
1
<!doctype html>
2
<html lang="en">
3
<head>
4
  <meta charset="utf-8">
5
  <title>jQuery UI 对话框(Dialog) - 基本的模态</title>
6
  <link rel="stylesheet" href="/css/jqu1.10.4/jquery-ui.min.css">
7
  <script src="/js/jqu/jquery.min1.10.2.js"></script>
8
  <script src="/js/jqu/jquery-ui.min1.10.4.js"></script>
9
  <link rel="stylesheet" href="jqueryui/style.css">
10
  <script>
11
  $(function() {
12
    $( "#dialog-modal" ).dialog({
13
      height: 140,
14
      modal: true
15
    });
16
  });
17
  </script>
18
</head>
19
<body>
20
 
21
<div id="dialog-modal" title="基本的模态对话框">
22
  <p>添加模态覆盖屏幕,让对话框看起来更突出,因为它让页面上其他内容变暗。</p>
23
</div>
24
 

 运行结果 
 北美留学生论坛