Kendo ui picker css issue

試著忘記壹切 提交于 2019-12-20 04:36:09

问题


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

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.

How can i able to do that.

Regards, Sri


回答1:


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

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

Here is a live demo: http://jsbin.com/efozol/5/edit




回答2:


KendoUI defines background not just as a background-color: XYZ; but using background-image: none, -webkit-linear-gradient(top, #ffc0cb 0px, #ffc0cb 100%); too So, start overwriting this definition saying background-image: none;



来源:https://stackoverflow.com/questions/13507971/kendo-ui-picker-css-issue

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!