fluid.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. <div class="easyui-panel" style="width:100%;max-width:400px;padding:30px 60px;">
  17. <div style="margin-bottom:20px">
  18. <input class="easyui-combobox" name="language" style="width:100%;"
  19. data-options="
  20. url: 'combobox_data2.json',
  21. method: 'get',
  22. valueField:'value',
  23. textField:'text',
  24. groupField:'group',
  25. label: 'width: 100%',
  26. labelPosition: 'top'
  27. ">
  28. </div>
  29. <div style="margin-bottom:20px">
  30. <input class="easyui-combobox" name="language" style="width:50%;"
  31. data-options="
  32. url: 'combobox_data2.json',
  33. method: 'get',
  34. valueField:'value',
  35. textField:'text',
  36. groupField:'group',
  37. label: 'width: 50%',
  38. labelPosition: 'top'
  39. ">
  40. </div>
  41. </div>
  42. </body>
  43. </html>