jQuery DatePicker背景色 [英] JQuery DatePicker background color

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

问题描述

我正在使用来自以下示例的JQuery DatePicker的示例 链接文本

I am using an example of JQuery DatePicker from link text

在我的asp.net页面上.

on my asp.net page.

但是,日期选择器的背景颜色是白色.我不确定如何更改此设置. (更改为默认颜色) 我的asp.net页面背景页面是白色的,也许是因为这个原因?

But, background color of the datepicker is white. I am not sure how to change this. (Change to default color) My asp.net page background page is white, maybe because of that?

任何帮助都会使它付之东流.谢谢.

Any help would be appereicate it. Thanks.

推荐答案

控件的背景格式来自.ui-widget-content CSS类.假设您只想应用到日期选择器,而不是其他控件,则需要这样的东西:

The background formatting for the control comes from the .ui-widget-content CSS class. Assuming you only want to apply to the date picker and not other controls you want something like this:

.ui-datepicker .ui-widget-content {
    background: #999 none;
}

如果您想更改所有控件的背景颜色,只需在CSS中找到现有的.ui-widget-content类并进行更改即可.

If instead you want to change the background colour for all controls, just find the existing .ui-widget-content class in your CSS and change that.

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

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