美文网首页
react去掉antd数字输入框的上下三角

react去掉antd数字输入框的上下三角

作者: pay_load | 来源:发表于2020-05-16 14:52 被阅读0次

    在对应的css文件添加

    input::-webkit-outer-spin-button,
    input::-webkit-inner-spin-button {
      -webkit-appearance: none;
    }
    input[type="number"]{
      -moz-appearance: textfield;
    }
    

    相关文章

      网友评论

          本文标题:react去掉antd数字输入框的上下三角

          本文链接:https://www.haomeiwen.com/subject/kltrohtx.html