:blank
形式语法
Error: could not find syntax for this item
示例
HTML
html
<div></div>
CSS
css
div {
border: 4px solid red;
}
:blank {
border-color: lime;
}
结果
规范
在 Selectors Level 4 中被简要地定义为 :blank
,但其功能随后被并入 :empty
,而 :blank
则被重新定义为空的 <input>
。
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
:-moz-only-whitespace |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Non-standard. Check cross-browser support before using.
- See implementation notes.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.