重氮的多重条件

Multiple Conditions in Diazo

我在重氮中设置了规则我想说的地方

"if there is no "#portal-column-two" 也没有 "#portal-column-one" 然后做 X" 在我看来,这个规则看起来像

<rules css:if-not-content="((#portal-column-one) and (#portal-column-two))"> blah </rules>

我查看了文档,但找不到任何明显的内容。我想我可以像这样包装规则集;

<rules css:if-not-content="#portal-column-one">
<rules css:if-not-content="#portal-column-two">
blah
</rules>
</rules>

但这似乎有些不雅。我想我应该可以把它写成一行吧?

想法? 谢谢

你只需要做::

<rules css:if-not-content="#portal-column-one,#portal-column-two"> blah </rules>

它只是一个 css 选择器。如果选择器为空,则应用规则。