有条件的Blogger,

问题描述 投票:0回答:1

如何使此CSS出现在每个Blog标记中,但我不希望它出现在特定的标记中

此代码执行相反的操作,它指定哪个标签应出现在css中,我希望代码可以显示css到处显示,但某些标签除外

  <b:if cond='data:blog.searchLabel in [&quot;car&quot;, &quot;Identity&quot;, &quot;Brand&quot;]'>

<style>
    body { background: #e2ad44 }
  </style> 

</b:if>
html blogger blogger-dynamic-views
1个回答
0
投票

使用逻辑运算符not反转条件:

<b:if cond='data:blog.searchLabel not in ["car", "Identity", "Brand"]'>
  <style>
    body { background: #e2ad44 }
  </style> 
</b:if>
© www.soinside.com 2019 - 2024. All rights reserved.