.footer {position: fixed;bottom: 1cm;left: 50%;transform: translateX(-50%);background-color: rgba(230, 230, 250, 0.4);color: #000000;min-width: 400px;max-width: 1120px;height: 55px;text-align: center;margin: 2px auto;padding: 1px;border-radius: 10px;font-size:15px;}
<?php
// 格式化文件大小函数
function formatSize($bytes) {
$units = ['字节', 'KB', 'MB', 'GB', 'TB'];
$unitIndex = 0;
while ($bytes >= 1024 && $unitIndex < count($units) - 1) {
$bytes /= 1024;
$unitIndex++;
}
return number_format($bytes, 1) . ' ' . $units[$unitIndex];
}
?>``