The ::-webkit-inner-spin-button CSS pseudo-element is used to style the inner part of the spinner button of number picker input elements.
Syntax
::-webkit-inner-spin-button {
/* ... */
}
Examples
These examples work only in browsers based on WebKit and Blink.
Changing the cursor in the spin controls
In this example, the CSS cursor is changed to pointer whenever the cursor is positioned over the inner part of the input's spin controls.
HTML
<input type="number" />
CSS
input[type="number"]::-webkit-inner-spin-button {
cursor: pointer;
}
Result
Changing_the_cursor_in_the_spin_controls
Specifications
Not part of any standard.
Browser compatibility
See also
- ::-webkit-textfield-decoration-container
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
