问题描述
我输入了我的卡号,每当它专注于移动设备时,文本的顶部就会被切断,我几乎不知道为什么会这样 在这里,您可以看到我从'@ stripe / react-stripe-js'导入的实际输入组件的代码 它在台式机上可以正常工作,但在移动设备上却完全混乱,我不知道为什么。其他输入似乎没有这个问题
<form style={{ width: "100%" }}>
<CardNumberElement
className={styles['card-input']}
options={{
placeholder: 'Card number',iconStyle: 'default',style: {
base: {
fontFamily: 'Poppins',fontWeight: '300',fontSize: '16px',lineHeight: '20px',backgroundColor: 'white',color: '#9D9D9D','::placeholder': {
color: '#9D9D9D',},':-webkit-autofill': {
fontWeight: '300',invalid: {
color: '#9e2146',}}
/>
<div className={styles["secondary-card-info"]}>
<CardExpiryElement
className={styles['secondary-card-input']}
options={{
style: {
base: {
fontFamily: 'Poppins',}}
/>
<CardCvcElement
className={styles['secondary-card-input']}
options={{
style: {
base: {
fontFamily: 'Poppins',}}
/>
</div>
</form>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)