Number input spin box CSS code compiler to JSS

后端 未结 1 487
醉梦人生
醉梦人生 2021-01-29 05:37

I\'ve got problem with converting CSS code for hiding spin box of number input for JSS. My question is how to appropriately convert this code t

相关标签:
1条回答
  • 2021-01-29 05:54
    input: {
        '&::-webkit-outer-spin-button, &::-webkit-inner-spin-button': {
          '-webkit-appearance': 'none',
          '-moz-appearance': 'none',
          'margin': 0
        },
        '&[type=number]': {
          '-webkit-appearance': 'textfield',
          '-moz-appearance': 'textfield'
        }
      }
    

    This should work.

    0 讨论(0)
提交回复
热议问题