We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
第1077天 在css中如何去掉type="number"尾部的箭头?
3+1官网
我也要出题
The text was updated successfully, but these errors were encountered:
html5中,input type="number",会默认显示上下箭头,可通过设定 input::-webkit-outer-spin-button 、input::-webkit-inner-spin-button 的-webkit-appearance: none 去掉箭头:
input::-webkit-outer-spin-button
input::-webkit-inner-spin-button
-webkit-appearance: none
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Test</title> <style> /* 去掉number类型自带的加减按钮 */ .without-arrow::-webkit-outer-spin-button, .without-arrow::-webkit-inner-spin-button { -webkit-appearance: none; } .without-arrow[type="number"] { -moz-appearance: textfield; } </style> </head> <body> <h1>Test</h1> <input type="number" class="without-arrow" /> </body> </html>
Sorry, something went wrong.
No branches or pull requests
第1077天 在css中如何去掉type="number"尾部的箭头?
3+1官网
我也要出题
The text was updated successfully, but these errors were encountered: