【问题标题】:Web font icon not displaying on html kendo grid网页字体图标未显示在 html 剑道网格上
【发布时间】:2017-07-20 20:14:28
【问题描述】:

我有一个不显示过滤器图标图像的 html 剑道网格。但是,它仍然过滤。我一直在使用 chrome 开发人员工具,当页面上传时,它总是生成 span class="k-icon k-filer"。我将其更改为 span class="k-icon k-i-filer" 并过滤图像显示。它还表明它正在开发人员工具中被覆盖。我不确定如何在我的代码中实现它以使其正常工作。

     columns.Bound(p => p.CurrentApplicationStatusText)
          .Filterable(filterable => filterable.UI("applicationStatusFilter"))
          .Title("Application Status")
          .Width(160);columns.Bound(p => p.StudentDOB)
          .Format("{0:MM/dd/yyyy}")
          .Title("DOB")
          .Width(100);

     .HtmlAttributes(new {style = "height: 579px; width: 110%"})
  .Scrollable()
  .Sortable()
  .Filterable(filterable => filterable
      .Extra(false)
      .Operators(operators => operators
          .ForString(str => str.Clear()
              .Contains("Contains")
              .IsEqualTo("Is equal to")
              .StartsWith("Starts with")
              .IsNotEqualTo("Is not equal to")

【问题讨论】:

    标签: html asp.net-mvc kendo-ui developer-tools


    【解决方案1】:

    如果您使用 Bootstrap 主题,请确保这些图像位于 Bootstrap 文件夹下。

    这是文件夹结构。

    扩展视图

    如果你想捆绑它们,请在 GitHub 上查看 my sample project

    【讨论】:

    • 我在任何地方都没有 font-awesome.css 或 font-awesome.min.css。 Win,这些文件是干什么用的?
    • 如果您不使用 font awesome,请忽略它们。
    • 我将它们捆绑在一起,所有文件似乎都存在。我不确定我错过了什么。
    • 如果你捆绑了 Kendo css 文件,你需要遵循原始路径。例如,如果 Kendo css 文件为~/Content/kendo/kendo.bootstrap.min.css,则捆绑包应为~/Content/kendo/css。看this代码。
    【解决方案2】:

    您可以像这样添加 css 块:

    .k-filter:before {
        content: "\e129";
    }
    

    【讨论】:

      猜你喜欢
      • 2018-06-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-11-10
      • 2015-03-01
      相关资源
      最近更新 更多