mirror of https://gitee.com/karson/fastadmin.git
commit
0c1e95c71a
|
|
@ -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 '<div class="radio">' . implode(' ', $html) . '</div>';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -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 '<div class="checkbox">' . implode(' ', $html) . '</div>';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue