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;
}
精彩评论