问题:想问问你用没用过struts2的标签,怎么用原来的css啊,像select标签。
解答:我记得struts2的标签里有个cssClass的属性吧,可以指定css中定义的属性。
附部分官方文档:
General Attributes
Attribute | Theme | Data Types | Description |
cssClass | simple | String | define html class attribute |
cssStyle | simple | String | define html style attribute |
title | simple | String | define html title attribute |
disabled | simple | String | define html disabled attribute |
label | xhtml | String | define label of form element |
labelPosition | xhtml | String | define label position of form element (top/left), default to left |
requiredposition | xhtml | String | define required label position of form element (left/right), default to right |
name | simple | String | Form Element's field name mapping |
required | xhtml | Boolean | add * to label (true to add false otherwise) |
tabIndex | simple | String | define html tabindex attribute |
value | simple | Object | define value of form element |