<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>