::-moz-focus-inner
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.
Phần tử giả CSS ::-moz-focus-inner là một phần mở rộng của Mozilla đại diện cho vòng focus bên trong của phần tử <button> cũng như các kiểu button, submit, reset và color của phần tử <input>.
Note:
Sử dụng ::-moz-focus-inner với bất kỳ thứ gì khác ngoài các nút hỗ trợ nó sẽ không khớp với bất cứ thứ gì và không có hiệu lực.
Cú pháp
::-moz-focus-inner {
/* ... */
}
Ví dụ
>HTML
<input type="submit" value="Input" /> <button type="submit">Button</button>
CSS
button::-moz-focus-inner,
input[type="color"]::-moz-focus-inner,
input[type="reset"]::-moz-focus-inner,
input[type="button"]::-moz-focus-inner,
input[type="submit"]::-moz-focus-inner {
padding-block-start: 0px;
padding-inline-end: 2px;
padding-block-end: 0px;
padding-inline-start: 2px;
border: 2px dotted red;
}
Kết quả
Đặ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
-
Thuộc tính CSS liên quan:
-
Bộ chọn CSS liên quan: