:blank
备注: 使用 :blank
选择器被认为尚有一定风险,CSSWG 正在持续改进它。
:blank
CSS 伪类选择器选择用户输入为空的输入框,如 <input>
和 <textarea>
)。
语法
Error: could not find syntax for this item
规范
Specification |
---|
Selectors Level 4 # blank-pseudo |
浏览器兼容性
BCD tables only load in the browser
参见
:empty
:-moz-only-whitespace
非标准 - The previous definition of:blank
.