我很难制作表单的元素属性:复选框适用于 css class .row-fluid1
JSP代码是
<h:field path="configuredChannels" required="true"
code="admin.menu.channels">
<div class="row-fluid" data-channel-checkboxes="#" style="row-fluid1">
<form:checkboxes element="div class='span1 row-fluid1'"
items="${channels}" path="configuredChannels" />
</div>
</h:field>
,CSS代码是
<style type="text/css">
.row-fluid1 [class*=span]
{display:block;
width:100%;
min-height:30px;
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
box-sizing:border-box;
float:left;
margin-left:3.4482758620689653%;
}
</style>
请让我知道我缺少的东西
答案 0 :(得分:2)
<h:field path="configuredChannels" required="true" code="admin.menu.channels">
<div class="row-fluid" data-channel-checkboxes="#" style="row-fluid1">
<form:checkboxes element="div" cssClass="span1 row-fluid1" items="${channels}" path="configuredChannels" />
</div>
</h:field>
我希望像上面这样的东西能起作用。你在div中也有一个div,它(如果我没记错的话)带有bootstrap(由于行)在左/右添加一个填充/边距。