EasyUI日期时间框DateTimeBox

浅浅的花香味﹌ 2021-09-29 14:52 334阅读 0赞

WEB DEMO

日期时间框 DateTimeBox

  1. <!DOCTYPE html>
  2. <html>
  3. <HTML>
  4. <head>
  5. <HEAD>
  6. <meta charset="UTF-8">
  7. <meta charset =“UTF-8”>
  8. <title>Fluid DateTimeBox - jQuery EasyUI Demo</title>
  9. <title> Fluid DateTimeBox - jQuery EasyUI演示</ title>
  10. <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
  11. <link rel =“stylesheet”type =“text / csshref =“../../ themes / default / easyui.css>
  12. <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
  13. <link rel =“stylesheet”type =“text / csshref =“../../ themes / icon.css>
  14. <link rel="stylesheet" type="text/css" href="../demo.css">
  15. <link rel =“stylesheet”type =“text / csshref =“../ demo.css>
  16. <script type="text/javascript" src="../../jquery.min.js"></script>
  17. <script type =“text / javascriptsrc =“../../ jquery.min.js> </ script>
  18. <script type="text/javascript" src="../../jquery.easyui.min.js"></script>
  19. <script type =“text / javascriptsrc =“../../ jquery.easyui.min.js> </ script>
  20. </head>
  21. </ HEAD>
  22. <body>
  23. <BODY>
  24. <h2>Fluid DateTimeBox</h2>
  25. <h2> Fluid DateTimeBox </ h2>
  26. <p>This example shows how to set the width of DateTimeBox to a percentage of its parent container.</p>
  27. <p>此示例显示如何将DateTimeBox的宽度设置为其父容器的百分比。</ p>
  28. <div style="margin:20px 0;"></div>
  29. <div style =“margin20px 0;”> </ div>
  30. <p>width: 50%</p>
  31. <p>宽度:50%</ p>
  32. <input class="easyui-datetimebox" style="width:50%">
  33. <input class =“easyui-datetimeboxstyle =“width50%”>
  34. <p>width: 30%</p>
  35. <p>宽度:30%</ p>
  36. <input class="easyui-datetimebox" style="width:30%">
  37. <input class =“easyui-datetimeboxstyle =“width30%”>
  38. </body>
  39. </ BODY>
  40. </html>
  41. </ HTML>
  42. <!DOCTYPE html>
  43. <html>
  44. <HTML>
  45. <head>
  46. <HEAD>
  47. <meta charset="UTF-8">
  48. <meta charset =“UTF-8”>
  49. <title>Initialize Value for DateTime - jQuery EasyUI Demo</title>
  50. <title>初始化DateTime的值 - jQuery EasyUI演示</ title>
  51. <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
  52. <link rel =“stylesheettype =“text / csshref =“../../ themes / default / easyui.css”>
  53. <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
  54. <link rel =“stylesheettype =“text / csshref =“../../ themes / icon.css”>
  55. <link rel="stylesheet" type="text/css" href="../demo.css">
  56. <link rel =“stylesheettype =“text / csshref =“../ demo.css”>
  57. <script type="text/javascript" src="../../jquery.min.js"></script>
  58. <script type =“text / javascriptsrc =“../../ jquery.min.js> </ script>
  59. <script type="text/javascript" src="../../jquery.easyui.min.js"></script>
  60. <script type =“text / javascriptsrc =“../../ jquery.easyui.min.js> </ script>
  61. </head>
  62. </ HEAD>
  63. <body>
  64. <BODY>
  65. <h2>Initialize Value for DateTime</h2>
  66. <h2>初始化DateTime的值</ h2>
  67. <p>The value is initialized when DateTimeBox has been created.</p>
  68. <p>创建DateTimeBox时初始化该值。</ p>
  69. <div style="margin:20px 0;"></div>
  70. <div style =“margin20px 0;”> </ div>
  71. <input class="easyui-datetimebox" value="10/11/2012 2:3:56" style="width:200px">
  72. <input class =“easyui-datetimebox”value =“10/11/2012 2:3:56”style =“width200px>
  73. </body>
  74. </ BODY>
  75. </html>
  76. </ HTML>

显示到秒

  1. <!DOCTYPE html>
  2. <html>
  3. <HTML>
  4. <head>
  5. <HEAD>
  6. <meta charset="UTF-8">
  7. <meta charset =“UTF-8”>
  8. <title>Display Seconds - jQuery EasyUI Demo</title>
  9. <title>显示秒数 - jQuery EasyUI演示</ title>
  10. <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
  11. <link rel =“stylesheet”type =“text / csshref =“../../ themes / default / easyui.css>
  12. <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
  13. <link rel =“stylesheet”type =“text / csshref =“../../ themes / icon.css>
  14. <link rel="stylesheet" type="text/css" href="../demo.css">
  15. <link rel =“stylesheet”type =“text / csshref =“../ demo.css>
  16. <script type="text/javascript" src="../../jquery.min.js"></script>
  17. <script type =“text / javascriptsrc =“../../ jquery.min.js> </ script>
  18. <script type="text/javascript" src="../../jquery.easyui.min.js"></script>
  19. <script type =“text / javascriptsrc =“../../ jquery.easyui.min.js> </ script>
  20. </head>
  21. </ HEAD>
  22. <body>
  23. <BODY>
  24. <h2>Display Seconds</h2>
  25. <h2>显示秒数</ h2>
  26. <p>The user can decide to display seconds part or not.</p>
  27. <p>用户可以决定是否显示秒部分。</ p>
  28. <div style="margin:20px 0;">
  29. <div style =“margin20px 0;”>
  30. <span>Show Seconds: </span>
  31. <span>显示秒数:</ span>
  32. <input type="checkbox" checked onchange="$('#dt').datetimebox({showSeconds:$(this).is(':checked')})">
  33. <input type =“checkbox”选中onchange =“$'#dt')。datetimebox({showSeconds$this).is':checked')})”>
  34. </div>
  35. </ DIV>
  36. <input id="dt" class="easyui-datetimebox" style="width:200px">
  37. <input id =“dtclass =“easyui-datetimeboxstyle =“width200px”>
  38. </body>
  39. </ BODY>
  40. </html>
  41. </ HTML>
  42. <!DOCTYPE html>
  43. <html>
  44. <HTML>
  45. <head>
  46. <HEAD>
  47. <meta charset="UTF-8">
  48. <meta charset =“UTF-8”>
  49. <title>Basic DateTimeBox - jQuery EasyUI Demo</title>
  50. <title>基本DateTimeBox - jQuery EasyUI演示</ title>
  51. <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
  52. <link rel =“stylesheettype =“text / csshref =“../../ themes / default / easyui.css”>
  53. <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
  54. <link rel =“stylesheettype =“text / csshref =“../../ themes / icon.css”>
  55. <link rel="stylesheet" type="text/css" href="../demo.css">
  56. <link rel =“stylesheettype =“text / csshref =“../ demo.css”>
  57. <script type="text/javascript" src="../../jquery.min.js"></script>
  58. <script type =“text / javascriptsrc =“../../ jquery.min.js> </ script>
  59. <script type="text/javascript" src="../../jquery.easyui.min.js"></script>
  60. <script type =“text / javascriptsrc =“../../ jquery.easyui.min.js> </ script>
  61. </head>
  62. </ HEAD>
  63. <body>
  64. <BODY>
  65. <h2>Basic DateTimeBox</h2>
  66. <h2>基本DateTimeBox </ h2>
  67. <p>Click the calendar image on the right side.</p>
  68. <p>点击右侧的日历图片。</ p>
  69. <div style="margin:20px 0;"></div>
  70. <div style =“margin20px 0;”> </ div>
  71. <input class="easyui-datetimebox" required style="width:200px">
  72. <input class =“easyui-datetimebox”required style =“width200px>
  73. </body>
  74. </ BODY>
  75. </html>
  76. </ HTML>

请点赞!因为你的鼓励是我写作的最大动力!

发表评论

表情:
评论列表 (有 0 条评论,334人围观)

还没有评论,来说两句吧...

相关阅读