剑道 ui 选择器 css 问题 [英] Kendo ui picker css issue

查看:18
本文介绍了剑道 ui 选择器 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 应该适用于日期(时间)选择器和下拉列表:

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

这篇关于剑道 ui 选择器 css 问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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