无法内联显示两项,因为一项在“ for”循环内,而另一项在“ if”语句内

问题描述

我必须在产品页面显示图标(Shopify的主题)。我有以下代码可以正确显示图标,但是我不知道如何内联显示它们。我尝试将所有内容包装在div或span中,但没有运气。这是代码

<div class="barra-de-info">      
     {% for tag in product.tags %}
         {% if tag contains '_hecho _en _mexico' %}
            <div class"icono-hecho-en-mex" style="width: 80px;">{% include 'icon-hecho-en-mexico' %}</div> 
         {% endif %}
     {% endfor %}
        {% if product.price >= 60000 %}
           <div class"icono-hecho-en-mex">{% include 'icon-free-shipping5' %}</div> 
        {% endif %}
</div>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)