您的位置:首页 > 编程语言 > Java开发

一个关于Struts2标签中cssClass属性的问题

2011-05-03 11:02 627 查看
问题:想问问你用没用过struts2的标签,怎么用原来的css啊,像select标签。

解答:我记得struts2的标签里有个cssClass的属性吧,可以指定css中定义的属性。

附部分官方文档:

General Attributes

AttributeThemeData TypesDescription
cssClasssimpleStringdefine html class attribute
cssStylesimpleStringdefine html style attribute
titlesimpleStringdefine html title attribute
disabledsimpleStringdefine html disabled attribute
labelxhtmlStringdefine label of form element
labelPositionxhtmlStringdefine label position of form element (top/left), default to left
requiredpositionxhtmlStringdefine required label position of form element (left/right), default to
right
namesimpleStringForm Element's field name mapping
requiredxhtmlBooleanadd * to label (true to add false otherwise)
tabIndexsimpleStringdefine html tabindex attribute
valuesimpleObjectdefine value of form element
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: