---
title: "jquery ui jquery datepicker日期插件改变大小 (转)"
author: "alleni123"
date: "2014-01-02T21:44:18Z"
tags: ["UI", "jQuery"]
categories: ["企业架构"]
slug: "jquery-ui-jquery-datepicker"
draft: false
lastmod: "2014-01-02T21:44:18Z"
id: 1998490
url: "https://alleni123.iteye.com/blog/1998490"
---

转自<http://hi.baidu.com/wsy555/item/b48f8b2529573dc1a4275a17>

jquery datepicker改大小问题，很纠结   网上找了好多，说改css
.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; font-size:大小} 可惜我试了不起作用
我试着用js加载后改，发现成功了！！！！

```js
$(function(){
        $("#starttime").datepicker({
               dateFormat: 'yy-mm-dd',//日期格式  
               changeMonth:true,
                changeYear:true,　
        });
        $("#ui-datepicker-div").css('font-size','0.9em') //改变大小
    });
```