-moz-user-input

Non-standard: This feature is not standardized. We do not recommend using non-standard features in production, as they have limited browser support, and may change or be removed. However, they can be a suitable alternative in specific cases where no standard option exists.

Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

Trong các ứng dụng Mozilla, -moz-user-input xác định xem một phần tử có chấp nhận đầu vào của người dùng hay không.

Kể từ Firefox 60, thuộc tính này không còn có thể cấp cho phần tử khả năng chấp nhận đầu vào của người dùng nếu nó thường không làm vậy. Thuộc tính chỉ có thể dùng để vô hiệu hóa đầu vào người dùng.

Thuộc tính user-input hiện không có trong lộ trình tiêu chuẩn hóa.

Cú pháp

css
/* Giá trị từ khóa */
-moz-user-input: auto;
-moz-user-input: none;

/* Giá trị toàn cục */
-moz-user-input: inherit;
-moz-user-input: initial;
-moz-user-input: unset;

Giá trị

auto

Phần tử sẽ phản hồi đầu vào người dùng nếu nó thường nhận đầu vào người dùng, ví dụ như <textarea>.

none

Phần tử không phản hồi đầu vào người dùng và không trở thành :active.

Định nghĩa hình thức

Initial valueauto
Applies toall elements
Inheritedyes
Computed valueas specified
Animation typediscrete

Cú pháp hình thức

-moz-user-input = 
auto |
none

Ví dụ

Vô hiệu hóa đầu vào người dùng cho một phần tử

css
input.example {
  /* Người dùng có thể chọn văn bản, nhưng không thể thay đổi nó. */
  -moz-user-input: none;
}

Đặc tả

Không thuộc bất kỳ tiêu chuẩn nào.

Tương thích trình duyệt

Xem thêm