简体   繁体   English

将数字输入旋转框CSS代码编译器转换为JSS

[英]Number input spin box CSS code compiler to JSS

I've got problem with converting CSS code for hiding spin box of number input for JSS . 我在转换CSS代码以隐藏JSS数字输入旋转框时遇到问题。 My question is how to appropriately convert this code that it will match JSS? 我的问题是如何适当地转换将与JSS匹配的代码?

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
   -webkit-appearance: none;
    margin: 0; 
}
input[type=number] {
-moz-appearance:textfield; 
}
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. 这应该工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM