如何在 Blogger 的一个条件标签中使用 2 个标签
How to use 2 Labels in one Conditional tag in Blogger
<b:if cond='data:blog.searchLabel == "Label"'>
<style type='text/css'>
.foa_bg {
background-image: url(https://site.io/images/covers/image.jpg);
}
</style>
</b:if>
我希望在一行中包含 2 或 5 个标签。
您可以使用in
运算符
<b:if cond='data:blog.searchLabel in ["Label1","Label2","Label3"]'>
<style type='text/css'>
.foa_bg {
background-image: url(https://site.io/images/covers/image.jpg);
}
</style>
</b:if>
<b:if cond='data:blog.searchLabel == "Label"'>
<style type='text/css'>
.foa_bg {
background-image: url(https://site.io/images/covers/image.jpg);
}
</style>
</b:if>
我希望在一行中包含 2 或 5 个标签。
您可以使用in
运算符
<b:if cond='data:blog.searchLabel in ["Label1","Label2","Label3"]'>
<style type='text/css'>
.foa_bg {
background-image: url(https://site.io/images/covers/image.jpg);
}
</style>
</b:if>