更改Kendo上传小部件中按钮的颜色

时间:2014-01-04 11:38:41

标签: colors upload kendo-ui

如何更改“剑道上传”小部件中“选择”按钮的颜色。

@(Html.Kendo().Upload().Name("files").Async(a => a
            .Save(WorkflowControllers.CommissionsAdjustments.ActionNames.Upload, WorkflowControllers.CommissionsAdjustments.Name)
            .Remove(WorkflowControllers.CommissionsAdjustments.ActionNames.Remove, WorkflowControllers.CommissionsAdjustments.Name)
            .AutoUpload(true))
            .HtmlAttributes(new { @id = "#=AgentID#"})
            .Events(events => events.Upload("onUploadDocuments").Remove("onRemoveDocuments")).ToClientTemplate())

1 个答案:

答案 0 :(得分:3)

您可以拥有全球风格:

.k-upload-button {
    background-color: white;
}

如果您有要搜索的上下文元素,则将其设置为特定按钮:

$("#buttonContext").find(".k-upload-button").css({ "background-color": "razmatazz" });