Question: I want to ask you how to use the original CSS, like the select tag, if you have never used the struts2 tag.
A: I remember that the struts2 tag has a cssclass attribute. You can specify the attribute defined in CSS.
Appendix:
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 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 |