user-modify
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.
Thuộc tính user-modify không có hiệu lực trong Firefox. Ban đầu nó được dự định để xác định liệu nội dung của một phần tử có thể được chỉnh sửa bởi người dùng hay không.
Warning:
Thuộc tính này đã được thay thế bởi thuộc tính contenteditable.
Cú pháp
/* Giá trị từ khóa */
user-modify: read-only;
user-modify: read-write;
user-modify: write-only;
/* Giá trị toàn cục */
user-modify: inherit;
user-modify: initial;
user-modify: revert;
user-modify: unset;
Thuộc tính -moz-user-modify được chỉ định là một trong các giá trị từ khóa từ danh sách dưới đây.
Giá trị
read-only-
Giá trị mặc định. Nội dung chỉ đọc.
read-write-
Người dùng có thể đọc và ghi nội dung.
read-write-plaintext-only-
Giống như
read-write, nhưng định dạng văn bản phong phú sẽ bị mất. write-only-
Người dùng có thể chỉnh sửa nội dung nhưng không thể đọc nó.
Cú pháp chính thức
user-modify =
read-only |
read-write |
read-write-plaintext-only |
write-only
Ví dụ
>HTML
<div class="readwrite">Người dùng có thể thay đổi văn bản này.</div>
CSS
.readwrite {
-moz-user-modify: read-write;
-webkit-user-modify: read-write;
}
Thông số kỹ thuật
Không phải là một phần của bất kỳ tiêu chuẩn nào.