按钮的话比如多选单选,在标签外围加个label表情,会使后面的文字也能实现对按钮的点击,名字要相同。
一个自己的例子,供以后自己借鉴
<label class="checkbox">
<input type="checkbox" name="authorities" value="<s:property value="#authority.authorityId" />"
<s:iterator value="%{roleAuthorityList_}" id="roleAuthority" status="roleIndex">
<c:if test="${authority.authorityId == roleAuthority.authorityId }">
checked = "true"
</c:if></s:iterator>>
<s:property value="#authority.authorityId" />
<s:property value="#authority.authorityName" />
</input>
</label>
http://www.bootcss.com/
推荐一个Bootstrap 简洁、直观、强悍的前端开发框架,让web开发更迅速、简单。