Browse Source

[Docs] Document newly added unitless css props in tips

main
Cheng Lou 11 years ago
parent
commit
797fffca05
  1. 7
      tips/06-style-props-value-px.md

7
tips/06-style-props-value-px.md

@ -20,10 +20,17 @@ See [Inline Styles](/react/tips/inline-styles.html) for more info.
Sometimes you _do_ want to keep the CSS properties unitless. Here's a list of properties that won't get the automatic "px" suffix: Sometimes you _do_ want to keep the CSS properties unitless. Here's a list of properties that won't get the automatic "px" suffix:
- `columnCount`
- `fillOpacity` - `fillOpacity`
- `flex`
- `flexGrow`
- `flexShrink`
- `fontWeight` - `fontWeight`
- `lineClamp`
- `lineHeight` - `lineHeight`
- `opacity` - `opacity`
- `order`
- `orphans` - `orphans`
- `widows`
- `zIndex` - `zIndex`
- `zoom` - `zoom`

Loading…
Cancel
Save