buttonalign.html 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Button Align on FileBox - 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>Button Align on FileBox</h2>
  14. <p>Change the button align to the left or right of filebox.</p>
  15. <div style="margin:20px 0 40px 0;"></div>
  16. <span>Select Button Align:</span>
  17. <select onchange="changeAlign(this.value)">
  18. <option value="left">Left</option>
  19. <option value="right" selected>Right</option>
  20. </select>
  21. <div style="margin:20px 0;"></div>
  22. <div class="easyui-panel" style="width:100%;max-width:400px;padding:30px 60px;">
  23. <input id="fb" class="easyui-filebox" style="width:100%" data-options="prompt:'Choose a file...'">
  24. </div>
  25. <script type="text/javascript">
  26. function changeAlign(align){
  27. $('#fb').filebox({buttonAlign:align});
  28. }
  29. </script>
  30. </body>
  31. </html>