aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/css/-moz-user-input
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/css/-moz-user-input
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/zh-cn/web/css/-moz-user-input')
-rw-r--r--files/zh-cn/web/css/-moz-user-input/index.html60
1 files changed, 60 insertions, 0 deletions
diff --git a/files/zh-cn/web/css/-moz-user-input/index.html b/files/zh-cn/web/css/-moz-user-input/index.html
new file mode 100644
index 0000000000..1478883378
--- /dev/null
+++ b/files/zh-cn/web/css/-moz-user-input/index.html
@@ -0,0 +1,60 @@
+---
+title: '-moz-user-input'
+slug: Web/CSS/-moz-user-input
+translation_of: Web/CSS/-moz-user-input
+---
+<div>{{Non-standard_header}}{{CSSRef}}</div>
+
+<h2 id="Summary">Summary</h2>
+
+<p>在Mozilla应用程序中, <code><strong>-moz-user-input</strong></code> 决定元素是否将接受用户输入。 A 类似的属性 <strong><code>user-focus</code></strong> 是在<a href="http://www.w3.org/TR/2000/WD-css3-userint-20000216">CSS3 UI规范的前身的早期草案</a>中提出的,但被工作组拒绝。</p>
+
+<p>{{cssinfo}}</p>
+
+<p><code>-moz-user-input</code> was one of the proposals leading to the proposed CSS 3 {{cssxref("user-input")}} property, which has not yet reached Candidate Recommendation (call for implementations).</p>
+
+<p>For elements that normally take user input, such as a {{HTMLElement("textarea")}}, the initial value of <code>-moz-user-input</code> is <code>enabled</code>.</p>
+
+<h2 id="Syntax">Syntax</h2>
+
+<pre class="brush:css">/* Keyword values */
+-moz-user-input: none;
+-moz-user-input: enabled;
+-moz-user-input: disabled;
+
+/* Global values */
+-moz-user-input: inherit;
+-moz-user-input: initial;
+-moz-user-input: unset;
+</pre>
+
+<h3 id="Values">Values</h3>
+
+<dl>
+ <dt>none</dt>
+ <dd>The element does not respond to user input, and it does not become {{Cssxref(":active")}}.</dd>
+ <dt>enabled</dt>
+ <dd>The element accepts user input. For textboxes, this is the default behavior.</dd>
+ <dt>disabled</dt>
+ <dd>The element does not accept user input. However, this is not the same as setting {{XULAttr("disabled")}} to true, in that the element is drawn normally.</dd>
+</dl>
+
+<h3 id="Formal_syntax">Formal syntax</h3>
+
+<pre class="syntaxbox">{{csssyntax}}</pre>
+
+<h2 id="Examples">Examples</h2>
+
+<pre class="brush:css">input.example {
+ /* the user will be able to select the text, but not change it. */
+ -moz-user-input: disabled;
+}
+</pre>
+
+<h2 id="See_also">See also</h2>
+
+<ul>
+ <li>{{cssxref("-moz-user-focus")}}</li>
+ <li>{{cssxref("-moz-user-modify")}}</li>
+ <li>{{cssxref("-moz-user-select")}}</li>
+</ul>