简体   繁体   中英

Conditional Blogger,

How do I make this CSS appear in every blog tag, but I don't want it to appear in specific tags

This code does the opposite, it specifies which tag should appear in the css, I would like a code that could show the css everywhere except in certain tags

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

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

</b:if>

Use the logical operator not to reverse condition:

<b:if cond='data:blog.searchLabel not in ["car", "Identity", "Brand"]'>
  <style>
    body { background: #e2ad44 }
  </style> 
</b:if>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM