一个关于Struts2标签中cssClass属性的问题
2011-05-03 11:02
627 查看
问题:想问问你用没用过struts2的标签,怎么用原来的css啊,像select标签。
解答:我记得struts2的标签里有个cssClass的属性吧,可以指定css中定义的属性。
附部分官方文档:
解答:我记得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 |
相关文章推荐
- 关于css控制a标签的一个小问题
- struts2与spring集成时,关于class属性及成员bean自动注入的问题
- 关于js修改css属性的一个小问题
- struts2与spring集成时,关于class属性及成员bean自动注入的问题
- Struts2 select标签 设置Class属性生成的html代码中select没有class属性问题
- struts2与spring集成时,关于class属性及成员bean自动注入的问题
- struts2 标签中添加 class 属性问题
- 关于JS修改标签的class属性
- css中的hover ,关于li与a标签的问题
- 关于struts2中List作为实体类一个属性的探求
- css基础 一个class属性给两个名字(实用技巧)
- Struts2项目中关于Struts标签的相关问题
- 关于HTML元素的SRC属性的一个问题
- 关于struts2 中action 属性没有 set 方法 依然会注入值的问题(解决)
- 奇怪的问题 struts的a标签好像不支持CSS中的类class
- 一个问题是有关于用js去替换htm指定标签之间的内容
- 关于struts2 sort标签的使用问题
- css基础 一个class属性给两个名字(实用技巧)
- 来自stackoverflow的一个关于 python 嵌套类的问题(nested class)
- CSS中选择器的优先级 ( ※关于相同属性的覆盖问题 )