test.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>使用 layDate 独立版</title>
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  8. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  9. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  10. <meta name="apple-mobile-web-app-capable" content="yes">
  11. <meta name="format-detection" content="telephone=no">
  12. <style>
  13. body{padding: 20px;}
  14. .demo-input{padding-left: 10px; height: 38px; min-width: 262px; line-height: 38px; border: 1px solid #e6e6e6; background-color: #fff; border-radius: 2px;}
  15. .demo-footer{padding: 50px 0; color: #999; font-size: 14px;}
  16. .demo-footer a{padding: 0 5px; color: #01AAED;}
  17. </style>
  18. </head>
  19. <body>
  20. <input type="text" class="demo-input" placeholder="请选择日期" id="test1">
  21. <div class="demo-footer">
  22. <a href="http://www.layui.com/laydate/" target="_blank">layDate<cite id="version"></cite></a>
  23. <a href="http://www.layui.com/doc/modules/laydate.html" target="_blank">文档</a>
  24. <span>&copy; <a href="http://www.layui.com/" target="_blank">layui.com</a><span>
  25. </div>
  26. <script src="laydate/laydate.js"></script> <!-- 改成你的路径 -->
  27. <script>
  28. lay('#version').html('-v'+ laydate.v);
  29. //执行一个laydate实例
  30. laydate.render({
  31. elem: '#test1' //指定元素
  32. });
  33. </script>
  34. </body>
  35. </html>