代码之家  ›  专栏  ›  技术社区  ›  Nam G VU

如何改变jqGrid的主题?

  •  3
  • Nam G VU  · 技术社区  · 14 年前

    我正在寻找一种方法来更改当前版本的jqGrid主题。 但这对我没用。在看 document 对我没什么帮助!

    你是如何改变jqGrid的主题的?

    1. 将主题更改为新主题的步骤
    2. 更喜欢通过online.css/.jsurl引用主题-以便自动将主题更新到最新版本
    2 回复  |  直到 10 年前
        1
  •  6
  •   UdayKiran Pulipati TechLover    10 年前

    ThemeRoller 提供24个主题。

    1. jqgrid 只需下载主题 Redmond Gallery 选项卡,然后单击 preview the theme 然后点击 Download
    2. 解压缩下载的文件 jquery-ui-1.10.4.custom themes -> redmond 文件夹。

    下面是要在jqgrid中应用主题的文件。

    例子:

    <link rel="stylesheet" type="text/css" media="screen" href="<%=request.getContextPath()%>/themes/redmond/jquery-ui-1.10.4.custom/css/redmond/jquery-ui-1.10.4.custom.css" />
    <script type="text/javascript" src="<%=request.getContextPath()%>/themes/redmond/jquery-ui-1.10.4.custom/js/jquery-1.10.2.js" ></script>
    <script type="text/javascript" src="<%=request.getContextPath()%>/themes/redmond/jquery-ui-1.10.4.custom/js/jquery-ui-1.10.4.custom.js"></script>
    

    更改jqgrid主题使用 jquery-ui-1.10.4.custom.css, jquery-1.10.2.js, jquery-ui-1.10.4.custom.js 文件夹。

    themeroller

    步骤:2

    themes

        2
  •  2
  •   Csaba Toth    7 年前