css使用布尔逻辑匹配属性

Rya*_*axe 3 css attributes

在css中,要匹配您可以使用的多个属性:

selector[attr1][attr2]{
    code goes here
}
Run Code Online (Sandbox Code Playgroud)

有没有办法让布尔逻辑使用css匹配属性?例如:

selector[attr1]OR[attr2]{
    code goes here
}
Run Code Online (Sandbox Code Playgroud)

将适用于任何情况下selector拥有attr1,attr2或两者!

这存在吗?如果是这样,语法是什么?

Jit*_*esh 6

使用

selector[attr1], selector[attr2]{
code goes here
}
Run Code Online (Sandbox Code Playgroud)