我需要一行上的复选框和标签
I need Checkbox and label on one row
我是 silverstripe
的新人。在 CMS (3.3) 中使用 silverstripe/userforms
模块制作表格。我需要在一行上显示复选框和标签。现在我有了这个:
在哪里可以编辑这些表单设置?
您需要使用 CSS 设置表单输出的样式:
form .field.optionset input {
float: left;
clear: left;
margin-top: 5px;
}
form .field.optionset ul label {
padding-left: 24px;
}
类似的东西应该可以解决问题。
我使用 display: inline;
或 display: inline-block;
而不是
float: left;
clear: left;
我是 silverstripe
的新人。在 CMS (3.3) 中使用 silverstripe/userforms
模块制作表格。我需要在一行上显示复选框和标签。现在我有了这个:
在哪里可以编辑这些表单设置?
您需要使用 CSS 设置表单输出的样式:
form .field.optionset input {
float: left;
clear: left;
margin-top: 5px;
}
form .field.optionset ul label {
padding-left: 24px;
}
类似的东西应该可以解决问题。
我使用 display: inline;
或 display: inline-block;
而不是
float: left;
clear: left;