kendo-ui - 剑道窗口 : how to set header height?

标签 kendo-ui

KendoWindow 没有设置窗口标题高度的配置选项,我找不到一种方法来处理 CSS。有任何想法吗?

最佳答案

选择器是 k-window-titlebar 但您可能必须对某些属性使用 important。定义CSS样式为

.k-window-titlebar {
    height: 60px !important;
    color: white !important;
    font-size: 30pt !important;
    background: red !important;
} 

一个片段...

$(document).ready(function() {
  var window = $("#window");
  window.kendoWindow({
    width: "450px",
    title: "About Alvar Aalto",
    pinned: true
  });
});
.k-window-titlebar {
  height: 60px !important;
  color: white !important;
  font-size: 30pt !important;
  background: red !important;
}
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2017.2.621/styles/kendo.common.min.css" />
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2017.2.621/styles/kendo.flat.min.css" />
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2017.2.621/styles/kendo.flat.mobile.min.css" />
<script src="https://kendo.cdn.telerik.com/2017.2.621/js/jquery.min.js"></script>
<script src="https://kendo.cdn.telerik.com/2017.2.621/js/kendo.all.min.js"></script>

<div id="window">
  <p>
    Alvar Aalto is one of the greatest names in modern architecture and design. Glassblowers at the iittala factory still meticulously handcraft the legendary vases that are variations on one theme, fluid organic shapes that let the end user decide the use. Interpretations of the shape in new colors and materials add to the growing Alvar Aalto Collection that remains true to his original design.
  </p>
</div>

关于kendo-ui - 剑道窗口 : how to set header height?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27318897/

相关文章:

asp.net-mvc-3 - 带有 Ajax 和参数的网格中的 Kendo Ui DropDownList (ASP.NET MVC)

combobox - Kendo ComboBox - 如何根据其 text() 而不是 value() 选择选项?

popup - 语法错误 : missing ; before statement in kendoui

javascript - 获取可拖动剑道窗口的偏移量

c# - 为什么我的操作没有在 ASP.NET MVC 4 Web 应用程序中被调用?

kendo-ui - 如何在 Kendo UI Jquery 中的同一网格中复制粘贴整行

javascript - 如何将数据发送到 KendoWindow 关闭事件

kendo-ui - 剑道UI : How to keep open the drop-down list in the multiselect component

kendo-ui - 为什么 KendoUI 网格传输创建事件会多次引发,即使操作是更新?

javascript - 向网页添加值部分