fluid.html 1.2 KB

1234567891011121314151617181920212223242526272829
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Fluid SearchBox - 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 SearchBox</h2>
  14. <p>This example shows how to set the width of SearchBox 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-searchbox" data-options="label:'width: 100%',labelPosition:'top',prompt:'Please Input Value',menu:'#mm'" style="width:100%">
  19. </div>
  20. <div style="margin-bottom:20px">
  21. <input class="easyui-searchbox" data-options="label:'width: 80%',labelPosition:'top',prompt:'Please Input Value'" style="width:80%">
  22. </div>
  23. </div>
  24. <div id="mm">
  25. <div data-options="name:'all',iconCls:'icon-ok'">All News</div>
  26. <div data-options="name:'sports'">Sports News</div>
  27. </div>
  28. </body>
  29. </html>