Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
997 views
in Technique[技术] by (71.8m points)

react native的TextInput高度太低导致无法显示完整输入了什么字

如题,请求各位大哥大姐们的帮助,在这里先谢谢各位了!
17的高度,字体大小12,导致输入什么字看都看不到,UI图就要这个高度我也没办法,请教大家该怎么办呢!

<TextInput style={styles.inputNumber} />
                        


inputNumber: {
        height: 17,
        width: 34,
        // backgroundColor: '#F6F6F6',
        backgroundColor: '#FFF',
        borderRadius: 2,
        color: '#323232',
        fontSize: 12,
        borderColor: 'gray',
        borderWidth: 1,
        textAlign: 'center'
    }

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

你把 padding 设置为 0 就好了。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...