fluid.html 897 B

123456789101112131415161718192021222324
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Fluid Dialog - jQuery EasyUI Demo</title>
  6. <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
  7. <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
  8. <link rel="stylesheet" type="text/css" href="../demo.css">
  9. <script type="text/javascript" src="../../jquery.min.js"></script>
  10. <script type="text/javascript" src="../../jquery.easyui.min.js"></script>
  11. </head>
  12. <body>
  13. <h2>Fluid Dialog</h2>
  14. <p>This example shows how to set the width of Dialog to a percentage of its parent container.</p>
  15. <div style="margin:20px 0;"></div>
  16. <div class="easyui-dialog" title="Fluid Dialog" style="width:80%;height:200px;max-width:800px;padding:10px" data-options="
  17. iconCls:'icon-save',
  18. onResize:function(){
  19. $(this).dialog('center');
  20. }">
  21. <p>width: 80%; height: 200px</p>
  22. </div>
  23. </body>
  24. </html>