css audio:not 的 w3schools 验证器错误([controls])
css error in w3schools validator for audio:not ( [ controls])
谁能告诉我为什么这在 w3schools 中显示为错误
audio:not ( [ controls]) {
display: none;
height: 0;
}
正如@Turnip 所说,试试这个:
audio:not([controls]) {
display: none;
height: 0;
}
避免不必要的空格,目前 Firefox 不支持这样的选择器(而且 Firefox 更遵守规则
audio:not([controls]) {
display: none;
height: 0;
}
谁能告诉我为什么这在 w3schools 中显示为错误
audio:not ( [ controls]) {
display: none;
height: 0;
}
正如@Turnip 所说,试试这个:
audio:not([controls]) {
display: none;
height: 0;
}
避免不必要的空格,目前 Firefox 不支持这样的选择器(而且 Firefox 更遵守规则
audio:not([controls]) {
display: none;
height: 0;
}