用于非空属性的CSS属性select器
有没有适用于非空属性的CSSselect器? 如果属性不存在 ,则使用:not([Data-Attribute=''])匹配。 
 我正在寻找类似[Data-Attribute!=''] 。 
尝试这个
 <style> [Data-Attribute]:not([Data-Attribute=""]) { background-color: Red; } </style> 
有没有适用于非空属性的CSSselect器? 如果属性不存在 ,则使用:not([Data-Attribute=''])匹配。 
 我正在寻找类似[Data-Attribute!=''] 。 
尝试这个
 <style> [Data-Attribute]:not([Data-Attribute=""]) { background-color: Red; } </style>