Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的意思是,就像我想为没有属性的元素设置样式title一样,[!title] /*This doesnt work*/如何使用 CSS 选择器来做到这一点?
title
[!title] /*This doesnt work*/
*:not([title])
这将选择所有not具有属性的东西title。
not
有关示例,请参阅此JSFiddle。