我用的是ECSHOP,关于到商品属性时想这样弄
现在的“属性”是一列每行这样显示的:但是我觉得这样太浪费页面的空间了,想把它弄成两列每行,如下图:我看了一下,似乎是修改goods.dwt中的代码:[Copy to clipboard] [ - ]CODE:
<table border="0">
<!-- {foreach from=$properties item=property_group key=key} -->
<tr>
<th colspan="2" class="parentTitle">{$key|escape}</th>
</tr>
<!-- {foreach from=$property_group item=property} -->
<tr>
<th>[ {$property.name|escape:html} ] :</th>
<td>{$property.value|escape:html}</td>
</tr>
<!-- {/foreach}-->
<!-- {/foreach}-->
</table>
请问一下官方,如何改这段代码,才能让它两列每行呢?
现在的“属性”是一列每行这样显示的:但是我觉得这样太浪费页面的空间了,想把它弄成两列每行,如下图:我看了一下,似乎是修改goods.dwt中的代码:[Copy to clipboard] [ - ]CODE:
<table border="0">
<!-- {foreach from=$properties item=property_group key=key} -->
<tr>
<th colspan="2" class="parentTitle">{$key|escape}</th>
</tr>
<!-- {foreach from=$property_group item=property} -->
<tr>
<th>[ {$property.name|escape:html} ] :</th>
<td>{$property.value|escape:html}</td>
</tr>
<!-- {/foreach}-->
<!-- {/foreach}-->
</table>
请问一下官方,如何改这段代码,才能让它两列每行呢?
原样式:
希望的样式: