React JSX style所有属性及用法
1 "alignItems", 2 3 "alignSelf", 4 5 "backfaceVisibility", 6 7 "backgroundColor", 8 9 "borderBottomColor", 10 11 "borderBottomLeftRadius", 12 13 "borderBottomRightRadius", 14 15 "borderBottomWidth", 16 17 "borderColor", 18 19 "borderLeftColor", 20 21 "borderLeftWidth", 22 23 "borderRadius", 24 25 "borderRightColor", 26 27 "borderRightWidth", 28 29 "borderStyle", 30 31 "borderTopColor", 32 33 "borderTopLeftRadius", 34 35 "borderTopRightRadius", 36 37 "borderTopWidth", 38 39 "borderWidth", 40 41 "bottom", 42 43 "color", 44 45 "flex", 46 47 "flexDirection", 48 49 "flexWrap", 50 51 "fontFamily", 52 53 "fontSize", 54 55 "fontStyle", 56 57 "fontWeight", 58 59 "height", 60 61 "justifyContent", 62 63 "left", 64 65 "letterSpacing", 66 67 "lineHeight", 68 69 "margin", 70 71 "marginBottom", 72 73 "marginHorizontal", 74 75 "marginLeft", 76 77 "marginRight", 78 79 "marginTop", 80 81 "marginVertical", 82 83 "opacity", 84 85 "overflow", 86 87 "padding", 88 89 "paddingBottom", 90 91 "paddingHorizontal", 92 93 "paddingLeft", 94 95 "paddingRight", 96 97 "paddingTop", 98 99 "paddingVertical", 100 101 "position", 102 103 "resizeMode", 104 105 "right", 106 107 "rotation", 108 109 "scaleX", 110 111 "scaleY", 112 113 "shadowColor", 114 115 "shadowOffset", 116 117 "shadowOpacity", 118 119 "shadowRadius", 120 121 "textAlign", 122 123 "textDecorationColor", 124 125 "textDecorationLine", 126 127 "textDecorationStyle", 128 129 "tintColor", 130 131 "top", 132 133 "transform", 134 135 "transformMatrix", 136 137 "translateX", 138 139 "translateY", 140 141 "width", 142 143 "writingDirection"
有时候你_的确需要_保持你的CSS属性的独立性。下面是不会自动加 "px" 后缀的 css 属性列表:
1 columnCount 2 fillOpacity 3 flex 4 flexGrow 5 flexShrink 6 fontWeight 7 lineClamp 8 lineHeight 9 opacity 10 order 11 orphans 12 strokeOpacity 13 widows 14 zIndex 15 zoom

![]()
![]()

浙公网安备 33010602011771号