最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Custom jQuery UI download with only datepicker doesn't include all css - Stack Overflow

programmeradmin1浏览0评论

I'm puzzled by what might be a really simple thing to do or understand.

So I downloaded jQuery UI package with the themeroller with these settings. I only chose datepicker and a custom theme. But when I try to use it the calendar doesn't look right:

I'v added these to my test page:

<link rel="stylesheet" type="text/css" href='Scripts/jqueryui/css/redmond/jquery-ui-1.10.4.custom.min.css' />
<script type="text/javascript" src='<%= Page.ResolveUrl("~/Scripts/jquery-1.11.0.min.js") %>'></script>
<script type="text/javascript" src='<%= Page.ResolveUrl("~/Scripts/jqueryui/js/jquery-ui-1.10.4.custom.min.js") %>'></script>

After investigating more, I realized that the custom css file that was created for me doesn't include the class .ui-datepicker.

So the question is, is this by design? Do I need to add still another base jquery ui css-file? I did not see any mention of this if that is the case. And why is that not included in my package if I need to do that? Or is this a bug? What should I do to get a package that only includes the css/js I need for only datepicker?

Thanks!

I'm puzzled by what might be a really simple thing to do or understand.

So I downloaded jQuery UI package with the themeroller with these settings. I only chose datepicker and a custom theme. But when I try to use it the calendar doesn't look right:

I'v added these to my test page:

<link rel="stylesheet" type="text/css" href='Scripts/jqueryui/css/redmond/jquery-ui-1.10.4.custom.min.css' />
<script type="text/javascript" src='<%= Page.ResolveUrl("~/Scripts/jquery-1.11.0.min.js") %>'></script>
<script type="text/javascript" src='<%= Page.ResolveUrl("~/Scripts/jqueryui/js/jquery-ui-1.10.4.custom.min.js") %>'></script>

After investigating more, I realized that the custom css file that was created for me doesn't include the class .ui-datepicker.

So the question is, is this by design? Do I need to add still another base jquery ui css-file? I did not see any mention of this if that is the case. And why is that not included in my package if I need to do that? Or is this a bug? What should I do to get a package that only includes the css/js I need for only datepicker?

Thanks!

Share Improve this question edited Apr 11, 2014 at 10:18 Esko asked Apr 11, 2014 at 7:51 EskoEsko 4,2072 gold badges24 silver badges38 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 3

Try using this Google Code source

EDIT: got it. Simply u need to select the Widget tick like this page

发布评论

评论列表(0)

  1. 暂无评论