bootstrap-datetimepicker效果加不进来 5
<%@pagelanguage="java"contentType="text/html;charset=UTF-8"pageEncoding="UTF-8"%><!DO...
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><% String basePath = "http://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() + "/";%><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Insert title here</title><link href="./resource/css/bootstrap.css" rel="stylesheet"><link href="./resource/css/bootstrap-datetimepicker.css"><script type="text/javascript" src="./resource/js/jquery.js"></script><script type="text/javascript" src="./resource/js/bootstrap.min.js"></script><script type="text/javascript" src="./resource/js/bootstrap-datetimepicker.min.js"></script></head><body><div id="datetimepicker" class="input-append date"> <input type="text"></input> <span class="add-on"> <i data-time-icon="icon-time" data-date-icon="icon-calendar"></i> </span></div><script type="text/javascript"> $('#datetimepicker').datetimepicker({ format: 'MM/dd/yyyy hh:mm', language: 'cn', pickDate: true, pickTime: true, hourStep: 1, minuteStep: 15, secondStep: 30, inputMask: true }); </script></body></html>
展开
若以下回答无法解决问题,邀请你更新回答
2个回答
展开全部
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>日期选择</title>
<!-- css -->
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/datepicker.css">
</head>
<body>
<div class="container">
<div class="row">
<div id="datepicker" class="date col-md-2 col-xs-4 input-group" style="padding-top: 300px">
<input type="text" class="form-control input-sm" placeholder="点击选择时间"/>
<span class="input-group-addon">
<i class="glyphicon glyphicon-th-list"></i>
</span>
</div>
</div>
</div>
<!--js-->
<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/bootstrap-datepicker.js"></script>
<script type="text/javascript" src="js/locales/bootstrap-datepicker.zh-CN.js"></script>
<script type="text/javascript">
$('#datepicker').datepicker({
show: true,
format: 'yyyy-mm-dd',
language: 'zh-CN',
weekStart: 1,
autoclose: true,
orientation:'right',
todayBtn:'linked'
});
</script>
</body>
</html>
自己比对一下,我的有效果。
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2014-10-07
展开全部
检查浏览器加载JS是否有报错
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询