Struts2-Jquery网格CSS编辑 [英] Struts2-Jquery Grid CSS Editing

查看:99
本文介绍了Struts2-Jquery网格CSS编辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网页上有一个 Struts2-jquery 网格组件.

I have a Struts2-jquery Grid component on my webpage.

它可以完美工作,但是如何为Struts2-jQuery-Grid插件编辑CSS规则?

It works perfectly, but how can I edit the CSS rules for the Struts2-jQuery-Grid plugin ?

我可以将我的自定义CSS规则应用于此网格视图吗?

Can I apply my custom CSS rules to this grid view ?

推荐答案

To answer your question: how to create a new jquery theme?

  1. 就像提到的@Andrea一样,您应该使用 jQuery ThemeRoller
  2. 像这样定义您的sj:head

<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<html>
  <head>
    <sj:head jqueryui="true" jquerytheme="mytheme" 
             customBasepath="template/themes"/>
  </head>
  <body>
  </body>
</html>

  • 您应该关注以下样式类.

  • You should care following style classes.

    • ui-widget-header
    • ui-state-default
    • ui-widget-content

    如果要调整单个样式,则可以使用CSS选择器或jQuery选择器来执行此操作.

    If you want to adjust single style, you can use either CSS selector or jQuery selector to do this.

    该插件将完成其余的工作.只需尝试一下.

    the plugin will do the rest. Just try it out.

    这篇关于Struts2-Jquery网格CSS编辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆