当前位置:网站首页>When type= 'number' is set in the input field, remove the up and down buttons behind it
When type= 'number' is set in the input field, remove the up and down buttons behind it
2022-07-27 22:28:00 【Old movie story】
As shown in the figure

Don't talk much , resolvent
When input type=‘number’ when , Remove the back up and down buttons
stay style Add this code inside
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
-webkit-appearance: none;
}
input[type="number"]{
-moz-appearance: textfield;
}
BUT In the current project , It uses vue+element, Usually when writing the style of the current page scoped, But you will find that the above code is invalid , You need to use /deep/
/deep/ input::-webkit-outer-spin-button, /deep/ input::-webkit-inner-spin-button {
-webkit-appearance: none;
}
/deep/ input[type="number"]{
-moz-appearance: textfield;
}
I hope I can help you !
边栏推荐
- Principle and application of CMOS transmission gate
- Deepfake's face is hard to distinguish between true and false, and musk Fenke has disguised successfully
- Go language learning notes - mutex start go language from scratch
- Leetcode-309- best time to buy and sell stocks, including freezing period
- Leetcode-152- product maximum subarray
- Leetcode-538- convert binary search tree to cumulative tree
- STM32 project Sharing -- mqtt intelligent access control system (including app control)
- HC32F4A0 时钟控制
- ThreadLocal principle and source code analysis (click in step by step, don't recite, learn ideas)
- Nodejs npm常用指令总结
猜你喜欢

Interview question: talk about your understanding of AQS

Time relay

SQL注入 Less26a(布尔盲注)
![[question 23] Sudoku game with rotation | DFS (Beijing Institute of Technology / Beijing Institute of Technology / programming methods and practice / primary school)](/img/75/c207f4f562fd5b547c5b3134113154.jpg)
[question 23] Sudoku game with rotation | DFS (Beijing Institute of Technology / Beijing Institute of Technology / programming methods and practice / primary school)

Inertial navigation principle (VII) -imu error classification (II) -allan variance analysis method +imu test + calibration introduction

只会Excel想做图表可视化,让数据动起来?可以,快来围观啦(附大量模板下载)

STM32项目分享---MQTT智能门禁系统(含APP控制)

8000 word explanation of OBSA principle and application practice

CMOS传输门原理及应用

CMOS switch (II)_ Parameter extraction
随机推荐
Interview questions that big companies need to prepare
Massive data TOPK problem
温度继电器
Leetcode-152- product maximum subarray
Leetcode15 -- sum of three numbers
一种比读写锁更快的锁,还不赶紧认识一下
High frequency relay
[numerical analysis exercise] numerical integration (complex trapezoid, complex Simpson, Romberg integral) C with STL implementation
Interview question: what are the functions of fail safe mechanism and fail fast mechanism
What is the employment prospect of software testing?
How to buy stocks on mobile phones? Is it safe to open an account
每条你收藏的资讯背后,都离不开TA
只会Excel想做图表可视化,让数据动起来?可以,快来围观啦(附大量模板下载)
舌簧继电器
Polarization relay
[stonedb fault diagnosis] MDL lock waiting
MySQL series - database tables, queries, sorting, and data processing functions
[illustration] shake hands three times and wave hands four times - it's enough to read this article carefully
An2021软件安装及基本操作(新建文件/导出)
Time relay