由于项目需求,今天在jquery UI官网找到了一个jquery日历插件,经过一个小时的琢磨终于把它攻克了。下面我会将日历插件使用的代码为大家贴出,如果对你们有帮助记得回帖 噢!……<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="text/javascript" src="pickadate.js-gh-pages/demo/jquery.js"></script>
<script type="text/javascript" src="pickadate.js-gh-pages/translations/pickadate.uk_UA.js"></script>
<script type="text/javascript" src="pickadate.js-gh-pages/source/pickadate.js"></script>
<script type="text/javascript" src="pickadate.js-gh-pages/source/pickadate.legacy.js"></script>
<script type="text/javascript" src="pickadate.js-gh-pages/source/pickadate.legacy.min.js"></script>
<script type="text/javascript" src="pickadate.js-gh-pages/source/pickadate.min.js"></script>
<script type="text/javascript" src="pickadate.js-gh-pages/demo/rainbow.js"></script>
<link type="text/css" rel="stylesheet" href="pickadate.js-gh-pages/demo/style.css" />
<link type="text/css" rel="stylesheet" href="pickadate.js-gh-pages/themes/pickadate.03.inline.css" />
<script type="text/javascript">
$(document).ready(function(){
$( '.datepicker' ).pickadate();
});
</script>
</head>
<body>
<div style="width:250px; height:20px;">
<input class="datepicker" type="text" />
</div>
</body>
</html>
记得将pickadate插件的所有文件拷到你的项目中,注意引用的路径一定对正确。
- 11.png(13.35 KB)
2013-3-22 23:36
日期是实现后的样式,插件中有4个样式,你可以根据自己的喜欢选择样式