This commit is contained in:
2026-01-13 15:39:49 +08:00
parent f1ae3d9dcb
commit c465ddd696
4 changed files with 23 additions and 6 deletions
+14 -5
View File
@@ -110,11 +110,20 @@
<h2>产品图</h2>
<div class="image-list">
<?php foreach ($car['images'] as $img): ?>
<div class="image-item">
<img src="<?= $img ?>">
</div>
<?php endforeach; ?>
<table width="100%" cellpadding="6" cellspacing="0">
<tr>
<?php foreach ($car['images'] as $i => $img): ?>
<td width="50%" align="center">
<img src="<?= $img ?>" style="width:100%; border-radius:4px;">
</td>
<?php if (($i + 1) % 2 === 0): ?>
</tr><tr>
<?php endif; ?>
<?php endforeach; ?>
</tr>
</table>
</div>
</body>