Kendo ui picker css issue

前端 未结 2 1853
耶瑟儿~
耶瑟儿~ 2021-01-23 09: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

相关标签:
2条回答
  • 2021-01-23 09:31

    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;

    0 讨论(0)
  • 2021-01-23 09:40

    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

    0 讨论(0)
提交回复
热议问题