我想选择日期应该涂上颜色 [英] i want select date should dislay in color

查看:75
本文介绍了我想选择日期应该涂上颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用了日历扩展器控件,因此当我将光标放在应显示为特定颜色的特定日期上时,这是为日历定义的CssClass属性.这个CssClass定义了所有需要应用的样式.
引用您可以在Toolkit解决方案中找到的默认CSS文件,在" AjaxControlToolkit \ Calendar \ Calendar.css "文件中.

它具有以下属性之一:
.ajax__calendar_hover:这应用于一天,月份或年份之上的DOM中的元素,并用于应用显示悬停状态的CSS属性.子级Css类:.ajax__calendar_day,.ajax__calendar_month,.ajax__calendar_year


您可以简单地定义自己的CSS类并根据需要覆盖属性.
请在此处参考日历主题部分以了解公开的属性: Ajaxtoolkit:日历演示 [ ^ ]


i used calender extender control so when i placed cursor on particular date that should display in color

解决方案

These is a property CssClass defined for the calendar. This CssClass is defined with a all the styles that needs to be applied.
Referring to the default CSS file that you can find in the Toolkit solution, in the "AjaxControlToolkit\Calendar\Calendar.css" file.

It has one of the properties as:
.ajax__calendar_hover : This is applied to an element in the DOM above a day, month or year and is used to apply CSS attributes that show a hover state. Child Css classes: .ajax__calendar_day, .ajax__calendar_month, .ajax__calendar_year


You can simply define your own CSS class and override the properties as per your need.
Refer calendar Theming section here to know about the exposed properties: Ajaxtoolkit: Calendar Demonstration[^]


这篇关于我想选择日期应该涂上颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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