我不能在"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)
为什么第二个代码不起作用?
您的CSS语法无效.
使用2个:not选择器:
input:not([type=submit]):not([type=reset]) {
// Styling here
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
76 次 |
| 最近记录: |