如何在Blogger博客文章中显示包含货币符号的标签(i:e产品价格,如18 $,19£)?
<div class='item_price'>
<b:loop values='data:post.labels' var='label'>
<b:if cond='data:label.name == "$"&&"£"'>
<span class='price'><data:label.name/></span>
</b:if>
</b:loop>
</div>
答案 0 :(得分:0)
使用contains
或in
包含
<div class='item_price'>
<b:loop values='data:post.labels' var='label'>
<b:if cond='data:label.name contains "$" or data:label.name contains "£"'>
<span class='price'><data:label.name/></span>
</b:if>
</b:loop>
</div>
使用
<div class='item_price'>
<b:loop values='data:post.labels' var='label'>
<b:if cond='"$" in data:label.name or "£" in data:label.name'>
<span class='price'><data:label.name/></span>
</b:if>
</b:loop>
</div>