feat: nas产品体验页
This commit is contained in:
@@ -54,11 +54,17 @@ if (!function_exists('style')) {
|
||||
if (is_array($styles)) {
|
||||
$key = array_keys($styles);
|
||||
foreach ($key as $v) {
|
||||
if (empty($styles[$v])){
|
||||
continue;
|
||||
}
|
||||
$css .= $v . ':' . $styles[$v] . ';';
|
||||
}
|
||||
} else {
|
||||
$css = $styles;
|
||||
}
|
||||
if ($css == '') {
|
||||
return '';
|
||||
}
|
||||
return 'style="' . $css . '"';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user