在React Native中布局采用的是FleBox(弹性框)进行布局. 像素无关 在React Native中尺寸是没有单位的,它代表了设备独立像素。 <View style={ {width:100,height:100,margin:40,backgroundColor:'gray'}}> <Text style={