如何更改“剑道上传”小部件中“选择”按钮的颜色。
@(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())
答案 0 :(得分:3)
您可以拥有全球风格:
.k-upload-button {
background-color: white;
}
如果您有要搜索的上下文元素,则将其设置为特定按钮:
$("#buttonContext").find(".k-upload-button").css({ "background-color": "razmatazz" });