【发布时间】:2023-04-05 11:18:01
【问题描述】:
我需要选择除两个 id 之外的所有正文元素并将 css 规则应用于它们。我正在使用此代码,它适用于一个 id,但是当添加第二个 id 时,该代码不再起作用。 此代码有效:
body>*:not(#frm){
filter: blur(3px);
pointer-events: none;
}
这个我试过了,还是不行:
body>*:not(#frm,#dte2){
filter: blur(3px);
pointer-events: none;
}
还有这个
body>*:not(#frm),(#dte){
filter: blur(3px);
pointer-events: none;
}
所以我的问题是如何选择 2 个 ID?
【问题讨论】:
-
body>*:not(#frm),body>*:not(#dte){
标签: css