::-webkit-search-cancel-button
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.
Phần tử giả ::-webkit-search-cancel-button trong CSS đại diện cho một nút (nút "hủy") ở cạnh của phần tử <input> có type="search", nút này xóa giá trị hiện tại của phần tử <input>. Nút và phần tử giả này không chuẩn, chỉ được hỗ trợ trong WebKit và Blink, do đó có tiền tố nhà cung cấp. Nút xóa chỉ hiển thị trên các phần tử <input> tìm kiếm không rỗng.
Cú pháp
css
selector::-webkit-search-cancel-button {
/* ... */
}
Đặc tả
Không thuộc về bất kỳ tiêu chuẩn nào.