jQuery 如何更改日期选择器颜色?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11011426/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to change the date Picker color?
提问by user
Possible Duplicate:
JQuery DatePicker background color
Am using the folllowing function for pick the date.It was work fine.How to change the datepicker color in jquery?
正在使用以下函数来选择日期。它工作正常。如何在 jquery 中更改日期选择器颜色?
function DateControl(id){
$(id).datepicker({
changeMonth: true,
changeYear: true
});
}
回答by chaitu
To change the background color of datepicker try this
要更改日期选择器的背景颜色试试这个
.ui-datepicker {
background: #333;
border: 1px solid #555;
color: #EEE;
}
回答by Naveen Kumar Yadav
For changing the background of datepicker
用于更改日期选择器的背景
.ui-datepicker
{
background: #999;
}
回答by corvallo
I think that the only way to style your datepicker is via css. Style your own or use themeroller ( http://jqueryui.com/themeroller/).
我认为设置日期选择器样式的唯一方法是通过 css。设置您自己的样式或使用 themeroller ( http://jqueryui.com/themeroller/)。