【发布时间】:2016-12-05 19:31:35
【问题描述】:
我使用 PrestaShop 1.6,我想在特定类别页面上显示图像,并且我希望图像在该类别的子类别中可见。
{if $subcategory->id == 15}
style="background-position: 70% 72%; background-image: url(../img.jpg);"
{/if}
【问题讨论】:
-
你好。你到底是什么问题??您的代码看起来不错,除了
url(../img.jpg);结尾处的 Missin " -
不是代码是问题所在。我想将这种风格赋予类别 id == 15 和类别 id == 15 的子类别
-
你的代码到底有什么问题??
标签: php smarty prestashop prestashop-1.6