开发者

CSS :not ? Select all div not but not a selection of them

HI, i need to select all div in dom without a selection of开发者_StackOverflow中文版 them. How can i do ? It's right ?

div:not(#a, #b, #c..){
  display: none;
}


Use the preference rules of CSS to override the setting for specific elements. Example:

div {
  display: none;
}
#a, #b, #c {
  display: block;
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜