logo
  • 教程列表
  • SO官方文档
  • 对话
    • 使用选项卡式标题栏创建对话框
    • 简单的例子
    • 事件发生时打开对话框
    • 复杂示例 - jQuery UI 动态创建对话框
    • 对话框没有关闭按钮
  1. StackOverflow 文档
  2. jQuery UI Library 教程
  3. 对话
  4. 简单的例子

简单的例子

Created: November-22, 2018

对话框是一个叠加在视口内的窗口。

<script>
  $(function() {
    $( "#dialog" ).dialog();
  });
</script>
<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>
  • 事件发生时打开对话框
  • 使用选项卡式标题栏创建对话框

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明