谢谢了,请帮忙!
我用的是ECSHOP,关于到商品属性时想这样弄
现在的“属性”是一列每行这样显示的: 但是我觉得这样太浪费页面的空间了,想把它弄成两列每行,如下图:代码是这样的:
<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>
我用的是ECSHOP,关于到商品属性时想这样弄
现在的“属性”是一列每行这样显示的: 但是我觉得这样太浪费页面的空间了,想把它弄成两列每行,如下图:代码是这样的:
<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>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货