使用ScrollView时,自带了一个类似marginTop的效果,将其去掉
<ScrollView automaticallyAdjustContentInsets={false} >
去除ScrollView的marginTop效果
本文介绍如何在使用ScrollView时去除其自带的类似marginTop的效果。通过设置automaticallyAdjustContentInsets属性为false来实现。
使用ScrollView时,自带了一个类似marginTop的效果,将其去掉
<ScrollView automaticallyAdjustContentInsets={false} >

被折叠的 条评论
为什么被折叠?