如何自定义struts-jquery-tags日历的大小

时间:2013-04-14 08:37:51

标签: jquery struts2 struts2-jquery

在我的struts2应用程序中,我正在使用struts-jquery-tags。使用这个标签库我正在制作日历属性,但它看起来非常大。我想把它变小。但我没有办法做到这一点。

<sj:datepicker  name="date" label="Aggrement DATE" changeMonth="true" changeYear="true"/>

2 个答案:

答案 0 :(得分:0)

您可以通过添加自己的样式来覆盖jQuery UI的默认样式表,就像标准的jQuery DatePicker一样:

在 jQuery CSS导入之后将其放在中。

<style>
   div.ui-datepicker {
      font-size: 62.5%;
   }
</style>

你可以从头开始编写一个全新的jQuery主题,但通常你只需覆盖一些属性,就像这种情况一样。

Read more here

答案 1 :(得分:0)

我们可以使用Firebug(firefox的Awesome插件)自定义struts calender或datetimepicker,每个开发人员都应该知道这种方法。

http://forums.java4s.com/Thread-How-to-change-the-color-of-datetimepicker-in-struts2

检查此链接。

此致