aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/css/_colon_blank
diff options
context:
space:
mode:
authorFlorian Merz <me@fiji-flo.de>2021-02-11 12:56:40 +0100
committerFlorian Merz <me@fiji-flo.de>2021-02-11 12:56:40 +0100
commit310fd066e91f454b990372ffa30e803cc8120975 (patch)
treed5d900deb656a5da18e0b60d00f0db73f3a2e88e /files/zh-cn/web/css/_colon_blank
parent8260a606c143e6b55a467edf017a56bdcd6cba7e (diff)
downloadtranslated-content-310fd066e91f454b990372ffa30e803cc8120975.tar.gz
translated-content-310fd066e91f454b990372ffa30e803cc8120975.tar.bz2
translated-content-310fd066e91f454b990372ffa30e803cc8120975.zip
unslug zh-cn: move
Diffstat (limited to 'files/zh-cn/web/css/_colon_blank')
-rw-r--r--files/zh-cn/web/css/_colon_blank/index.html56
1 files changed, 56 insertions, 0 deletions
diff --git a/files/zh-cn/web/css/_colon_blank/index.html b/files/zh-cn/web/css/_colon_blank/index.html
new file mode 100644
index 0000000000..adcaa5c998
--- /dev/null
+++ b/files/zh-cn/web/css/_colon_blank/index.html
@@ -0,0 +1,56 @@
+---
+title: ':blank'
+slug: 'Web/CSS/:blank空白伪类'
+tags:
+ - CSS
+ - CSS 选择器
+ - 伪类
+translation_of: 'Web/CSS/:blank'
+---
+<p>{{CSSRef}}{{Draft}}{{SeeCompatTable}}</p>
+
+<div class="blockIndicator note">
+<p><strong>注意:</strong>使用 <code>:blank</code> 选择器被认为尚有一定风险,CSSWG 正在持续改进它。</p>
+
+<p>详见<a href="https://github.com/w3c/csswg-drafts/issues/1967" title="[selectors] decide on :blank"> CSSWG issue #1967</a>。</p>
+</div>
+
+<p><strong><code>:blank</code></strong> <a href="/en-US/docs/Web/CSS">CSS</a> <a href="/zh-CN/docs/Web/CSS/Pseudo-classes">伪类</a>选择器选择用户输入为空的输入框,如 {{HTMLElement("input")}} 和 {{HTMLElement("textarea")}})。</p>
+
+<h2 id="语法">语法</h2>
+
+<pre class="syntaxbox">{{CSSSyntax}}</pre>
+
+<h2 id="规范">规范</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">Specification</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comment</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName("CSS4 Selectors", "#blank-pseudo", ":blank")}}</td>
+ <td>{{Spec2("CSS4 Selectors")}}</td>
+ <td>Initial definition.</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
+
+<div class="hidden">此页上的兼容性表由结构化数据生成。如果您想贡献数据,请查看https://github.com/mdn/browser-compat-data并发送给我们请求。</div>
+
+<div class="hidden">如果你想得到更多信息,请查看:<a href="https://www.w3.org/TR/selectors-4/#blank-pseudo">https://www.w3.org/TR/selectors-4/#blank-pseudo</a></div>
+
+<p>{{Compat("css.selectors.blank")}}</p>
+
+<h2 id="参见">参见</h2>
+
+<ul>
+ <li>{{CSSxRef(":empty")}}</li>
+ <li>{{CSSxRef(":-moz-only-whitespace")}} {{Non-standard_Inline}} - The previous definition of <code>:blank</code>.</li>
+</ul>