fluid.html 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Fluid ComboBox - 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 ComboBox</h2>
  14. <p>This example shows how to set the width of combobox to a percentage of its parent container.</p>
  15. <div style="margin:20px 0"></div>
  16. <p>width: 50%</p>
  17. <input class="easyui-combobox" name="language" style="width:50%"
  18. data-options="
  19. url: 'combobox_data2.json',
  20. method: 'get',
  21. valueField:'value',
  22. textField:'text',
  23. groupField:'group'
  24. ">
  25. <p>width: 30%</p>
  26. <input class="easyui-combobox" name="language" style="width:30%"
  27. data-options="
  28. url:'combobox_data1.json',
  29. method:'get',
  30. valueField:'id',
  31. textField:'text',
  32. panelHeight:'auto'
  33. ">
  34. </body>
  35. </html>