CSS"not"选择器不起作用

Jér*_*ont 0 css

我不能在"not"选择器中放两个不同的规则示例:

此代码有效:

input:not([type=submit]) {
  // Styling here
}
Run Code Online (Sandbox Code Playgroud)

但是这段代码不起作用:

input:not([type=submit], [type=reset]) {
  // Styling here
}
Run Code Online (Sandbox Code Playgroud)

为什么第二个代码不起作用?

Cur*_*urt 6

您的CSS语法无效.

使用2个:not选择器:

input:not([type=submit]):not([type=reset]) {
  // Styling here
}
Run Code Online (Sandbox Code Playgroud)