Number input spin box CSS code compiler to JSS

后端 未结 1 489
醉梦人生
醉梦人生 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)
提交回复
热议问题