Kendo UI Picker CSS问题 [英] Kendo ui picker css issue

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

问题描述

我正在使用kendo ui下拉列表和其他一些选择器.我想设置所选项目的背景颜色.

I am using kendo ui dropdown list and some other pickers. I want to style the selected item background color.

我尝试过.k-dropdown .k-state-selected {background-color:red},但是所选项目的颜色没有改变.它设置为默认仅橙色.但是,相同的代码适用于网格和列表视图.

I had tried .k-dropdown .k-state-selected{ background-color: red} but the color of selected item is not changing. It is set to default orange only. But the same code is working for grid and list view.

我该怎么做.

关于, 斯里

推荐答案

以下CSS应该适用于date(time)picker和dropdownlist:

The following CSS should work for date(time)picker and the dropdownlist:

.k-widget .k-state-selected,
.k-list .k-state-selected
{ 
  background: red;
}

这是一个实时演示: http://jsbin.com/efozol/5/edit

这篇关于Kendo UI Picker CSS问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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