kendoui panelbar格式文本,带颜色和下划线

时间:2014-08-20 17:19:27

标签: css css3 kendo-ui kendo-panelbar

我只尝试格式化kendoui面板栏文本,而不是容器内的内容。

    /* kendo overrides */
    .k-panelbar .k-link
    {
        font-size:larger;
        font-weight:700;
        text-decoration: underline;
    }

上面的代码保留了面板中的内容,并使用除text-decoration选项之外的所有内容格式化面板栏中的文本。

除非我使用.k-item,否则

text-decoration(尝试过文本装饰颜色)也不起作用,但k.item也会影响面板中的内容。

    /* kendo overrides */
    .k-panelbar .k-item
    {
        font-size:larger;
        font-weight:700;
        text-decoration: underline;
    }

如何仅更改面板栏本身的文字?

1 个答案:

答案 0 :(得分:1)

请尝试使用以下代码段。

.k-panelbar>.k-item>.k-link {
      color: red !important;
      text-decoration: underline !important;
}

您只想将应用样式更改为面板栏标题。

如果我不理解你的要求,请告诉我。