formattip.html 979 B

12345678910111213141516171819202122232425262728
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Format Tip Information - 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>Format Tip Information</h2>
  14. <p>This sample shows how to format tip information.</p>
  15. <div style="margin:20px 0 50px 0;"></div>
  16. <input class="easyui-slider" value="12" style="width:300px" data-options="
  17. showTip: true,
  18. rule: [0,'|',25,'|',50,'|',75,'|',100],
  19. tipFormatter: function(value){
  20. return value+'px';
  21. },
  22. onChange: function(value){
  23. $('#ff').css('font-size', value);
  24. }">
  25. <div id="ff" style="margin-top:50px;font-size:12px">jQuery EasyUI</div>
  26. </body>
  27. </html>