简体   繁体   English

KendoUI工具栏splitButton自动突出显示下拉列表中的第一个选项。 如何使所有选项看起来都一样

[英]KendoUI Toolbar splitButton automatically highlights the first option in the dropdownlist. How to make all options to looks the same

KendoUI Toolbar splitButton automatically highlights(partially in the link provided and in my case, completely) the first option in the dropdownlist. KendoUI工具栏splitButton自动突出显示下拉列表中的第一个选项(部分在所提供的链接中,对于我而言,是完全突出显示)。 http://demos.telerik.com/kendo-ui/toolbar/index http://demos.telerik.com/kendo-ui/toolbar/index

In this url, if we observe, the Insert option has "Insert Above" set to blue instead of black. 在此url中,如果我们观察到,Insert选项会将“ Insert Above”设置为蓝色而不是黑色。 Similarly for Paragraph. 对于段落也是如此。 How can I make all of them look the same. 我怎样才能使它们看起来都一样。

You can customize css like that 您可以像这样自定义CSS

<style>
    .k-button.k-state-focused, .k-button:focus {
      border: 0px !important; 
      background-color: #ffffff !important;
    }

    .k-button.k-state-focused, .k-button:hover {
      background-color: #f4f4f4 !important;
    }

    .k-list-optionlabel.k-state-selected.k-state-focused{
      background-color: #ffffff !important;
      border: 0px !important; 
    }
    .k-list-optionlabel.k-state-selected.k-state-focused:hover{
      background-color: #f4f4f4 !important;
    }
</style>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM