Javascript 在我的react native应用程序内容中修改之前有效的内容后,提升突然不起作用
我在我的应用程序中使用了标高属性,它以前工作正常,但在其他几次更改后,标高突然不工作 我以前用过的款式很好用Javascript 在我的react native应用程序内容中修改之前有效的内容后,提升突然不起作用,javascript,react-native,react-native-android,Javascript,React Native,React Native Android,我在我的应用程序中使用了标高属性,它以前工作正常,但在其他几次更改后,标高突然不工作 我以前用过的款式很好用 flexDirection: 'row', backgroundColor: 'white', height: hp('9%'), alignItems: 'center', borderRadius: wp('2%'), marginBottom: hp('2%'), m
flexDirection: 'row',
backgroundColor: 'white',
height: hp('9%'),
alignItems: 'center',
borderRadius: wp('2%'),
marginBottom: hp('2%'),
marginLeft: wp('5%'),
elevation: 5, ```
您可以在样式的“立面”下尝试“位置:'相对'”
flexDirection: 'row',
backgroundColor: 'white',
height: hp('9%'),
alignItems: 'center',
borderRadius: wp('2%'),
marginBottom: hp('2%'),
marginLeft: wp('5%'),
elevation: 5,
position: 'relative',
“几乎没有其他变化”->什么变化?如果此样式没有更改,问题不在于此样式,而在于您的更改您是否在父组件上设置了
高程
?Name MD
i已在companyPersonSubContainer中设置高程