html如何让input number类型的标签不产生上下加减的按钮(转)

添加css代码:

<style>
    input::-webkit-outer-spin-button,
    input::-webkit-inner-spin-button {
        -webkit-appearance: none !important;
        margin: 0;
    }
</style>

 原文链接:https://www.cnblogs.com/lizhaoyao/p/7568687.html

原文地址:https://www.cnblogs.com/YeHuan/p/11379389.html