开发者

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

开发者 https://www.devze.com 2023-01-28 01:02 出处:网络
HI, i need to select all div in dom without a selection of开发者_StackOverflow中文版 them. How can i do ?

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

精彩评论

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