CSS

-moz-user-input

-moz-user-input

非标准

此功能是非标准的,不处于标准轨道上.。不要在面向Web的生产站点上使用它:它并不适用于每个用户。实现之间也可能存在很大的不兼容性,而且这种行为在未来可能会发生变化。

在Mozilla应用程序中,-moz-user-input确定一个元素是否会接受用户输入。在CSS3 UI规范的前身早期草案中user-focus提出了一个类似的属性,但被工作组拒绝。

初始值auto
适用元素all elements
是否是继承属性yes
适用媒体visual
计算值as specified
动画类型discrete
正规顺序the unique non-ambiguous order defined by the formal grammar

-moz-user-input是提议CSS 3 user-input属性的建议之一,该建议尚未达到候选建议书(要求实施)。

对于通常需要用户输入的元素,如 <textarea>,-moz-user-input是enabled的初始值。

语法

/* 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;

none元素不响应用户输入,并且不会变为:active.

正式语法

auto | none | enabled | disabled

示例

input.example { /* the user will be able to select the text, but not change it. */ -moz-user-input: disabled; }