Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/381.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 使用jQuery UI主题浏览器自定义主题实现问题_Javascript_Jquery_Jquery Ui_Datepicker_Themeroller - Fatal编程技术网

Javascript 使用jQuery UI主题浏览器自定义主题实现问题

Javascript 使用jQuery UI主题浏览器自定义主题实现问题,javascript,jquery,jquery-ui,datepicker,themeroller,Javascript,Jquery,Jquery Ui,Datepicker,Themeroller,我只是使用并下载了主题,但我无法实现它 我已经尝试导入文件,但当我为日期选择器添加输入时,它仍然只是一个文本框。。。如何使用这个我只需要“日期选择器”我做错了什么? 谢谢你的帮助 <html> <head> <script src="~/Content/jquery.js"></script> <link href="~/Content/jquery-ui.min.css" rel="stylesheet" />

我只是使用并下载了主题,但我无法实现它 我已经尝试导入文件,但当我为日期选择器添加输入时,它仍然只是一个文本框。。。如何使用这个我只需要“日期选择器”我做错了什么? 谢谢你的帮助

<html>
<head>
    <script src="~/Content/jquery.js"></script>
    <link href="~/Content/jquery-ui.min.css" rel="stylesheet" />
    <script src="~/Content/jquery-ui.min.js"></script>
    <link href="~/Content/jquery-ui.structure.min.css" rel="stylesheet" />
    <link href="~/Content/jquery-ui.theme.min.css" rel="stylesheet" />
    <title>Test</title>
</head>
<body>
    <div> 
        <input id="date" type="text" />
    </div>
</body>
</html>


<script>
   $(function() {
      $('#date').datepicker();
         });
</script>

试验
$(函数(){
$('#date').datepicker();
});

这些足以让自定义ThemeRoller正常工作(当然还可以添加图像)



希望它能对其他寻求jQuery UI自定义ThemeRoller实现的人有所帮助。

这些足以让自定义ThemeRoller正常工作(当然还有添加图像)



希望它能对其他寻求jQuery UI自定义ThemeRoller实现的人有所帮助。

您的控制台中有错误吗?看起来一切正常。出于好奇,将所有css文件引用移到顶部,在所有js文件之前。不过,这对您的具体问题没有什么影响。奇怪的是,我只是导入code.jquery.com/jquery-1.10.2.js“>code.jquery.com/ui/1.10.4/jquery ui.js”>,它可以工作:)请随意回答您自己的问题,然后接受您自己的答案。控制台中有任何错误吗?一切看起来都正常。出于好奇,将所有css文件引用移到顶部,在所有js文件之前。不过,这对您的具体问题并没有什么影响。奇怪的是,我只是导入code.jquery.com/jquery-1.10.2.js“>code.jquery.com/ui/1.10.4/jquery ui.js”>并且它可以工作:)自由回答您自己的问题,然后接受您自己的答案。
<link href="~/jquery-ui.min.css" rel="stylesheet" />
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
<script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>