<sx:datetimepicker name="birthDate" required="true"
value="%{employee.birthDate}"
displayFormat="%{#application.dateFormat}"/>
这是我在jsp中使用的 struts 2 中的日期时间选择器标签,
默认情况下它是蓝色cssStyle { Background:red }的
您正在使用<sx:datetimepicker>标签,这意味着您正在使用dojo插件。您可以datetimepicker通过使用不同的dojo主题或覆盖与datetimepicker.
请尝试此 struts 2 使用默认 css,因此您不能尝试以下链接仅更改我提到的 css。如果您使用的是 struts dojo,请避免,因为它已被弃用。
<style>
.ui-datepicker .ui-widget-content { background: #999 none; }
</style>