jQuery Datepicker宽度 [英] jQuery Datepicker Width

查看:235
本文介绍了jQuery Datepicker宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不明白为什么这么难做到.关于jQuery的一切都很简单.如何设置jQuery"display:inline;"的宽度日期选择器?

I don't understand why this is so hard to do. Everything about jQuery is so simple. How do you set the width of a jQuery "display: inline;" Datepicker?

我已经编辑了jQuery ui css,但是一旦更改月份,它就会重新设置宽度.

I have edited the jquery ui css but as soon as I change the month it resets the width.

我希望这只是我所缺少的东西.

I hope this is just something dumb that I'm missing.

推荐答案

如果您以默认格式使用jQuery datepicker,则只需将其添加到CSS即可,应该可以:

If you are using the jQuery datepicker in its default form, then just add this to your css and it should work:

.ui-datepicker {
width: 17em; /*what ever width you want*/
}

这篇关于jQuery Datepicker宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆