diff --git a/application/admin/common.php b/application/admin/common.php index 705cba8ef675022622f3adac4d80bfee07b3a21f..ccd9c49a6af47554ea0ebddfe564a87ff4fa6110 100644 --- a/application/admin/common.php +++ b/application/admin/common.php @@ -36,7 +36,7 @@ function build_radios($name, $list = [], $selected = null) { $html[] = sprintf(Form::label("{$name}-{$k}", "%s {$v}"), Form::radio($name, $k, in_array($k, $selected), ['id' => "{$name}-{$k}"])); } - return implode(' ', $html); + return '
' . implode(' ', $html) . '
'; } /** @@ -55,7 +55,7 @@ function build_checkboxs($name, $list = [], $selected = null) { $html[] = sprintf(Form::label("{$name}-{$k}", "%s {$v}"), Form::checkbox($name, $k, in_array($k, $selected), ['id' => "{$name}-{$k}"])); } - return implode(' ', $html); + return '
' . implode(' ', $html) . '
'; } /** diff --git a/public/assets/less/backend.less b/public/assets/less/backend.less index fdf0f585ce27cca071fcf0e5c1821827dfda44f4..73b3d5043d88060f1c9f4db5b49ee95642d39b88 100644 --- a/public/assets/less/backend.less +++ b/public/assets/less/backend.less @@ -731,4 +731,14 @@ table.table-template{ /*平板样式*/ @media (max-width: @screen-tablet) { +} + +/*修复radio和checkbox样式对齐*/ +.radio, .checkbox { + > label { + margin-right: 10px; + > input { + margin: 2px 0 0; + } + } } \ No newline at end of file