flex | 'flexGrow', 'flexShrink', 'flexBasis' | ✔️ |
flex-grow | Number | ✔️ |
flex-shrink | Number | ✔️ |
flex-basis | Length | ✔️ |
flex-direction | 'row','row-reverse','column','column-reverse' | ✔️ |
justify-content | 'flex-start', 'flex-end', 'center', 'space-between', 'space-around', 'space-evenly' | ✔️ |
align-content | 'flex-start', 'flex-end', 'center', 'space-between', 'space-around', 'space-evenly' | ✔️ |
align-items | 'flex-start', 'flex-end', 'center', 'baseline', 'stretch' | ✔️ |
align-self | 'flex-start', 'flex-end', 'center', 'baseline', 'stretch' , 'auto' | ✔️ |
flex-wrap | 'nowrap', 'wrap', 'wrap-reverse' | ✔️ |
position | 'relative', 'absolute', 'fixed' | ✔️ |
left | Length | ✔️ |
top | Length | ✔️ |
bottom | Length | ❌ |
right | Length | ❌ |
z-index | Number | ✔️ |
bottom | Length | ✔️ |
margin | Length \ Length Length \ Length Length Length \ Length Length Length Length | ✔️ |
margin-top | Length | ✔️ |
margin-right | Length | ✔️ |
margin-bottom | Length | ✔️ |
margin-left | Length | ✔️ |
padding | Length \ Length Length \ Length Length Length \ Length Length Length Length | ✔️ |
padding-top | Length | ✔️ |
padding-right | Length | ✔️ |
padding-bottom | Length | ✔️ |
padding-left | Length | ✔️ |
width | Length | ✔️ |
height | Length | ✔️ |
min-height | Length | ✔️ |
min-width | Length | ✔️ |
max-height | Length | ✔️ |
max-width | Length | ✔️ |
background | | ✔️ |
background-color | Color | ✔️ |
background-image | "src('xxx')", "linear-gradient(xxx)", "radial-gradient(xxx)" 支持图片资源和性渐变 | ✔️ |
background-size | 'cover', 'contain', Length(x y), Length(x) Length(y) | ✔️ |
background-position | center', 'top', 'bottom', 'left', 'right', , Length(x y), Length(x) Length(y) | ✔️ |
background-repeat | 'repeat', 'no-repeat', 'repeat-x', 'repeat-y' | ✔️ |
border | Border(可设置 4 个值,控制 4 个方向) | ✔️ |
border-top | Border | ✔️ |
border-left | Border | ✔️ |
border-right | Border | ✔️ |
border-bottom | Border | ✔️ |
border-color | Color(可设置 4 个值,控制 4 个方向) | ✔️ |
border-top-color | Color | ✔️ |
border-right-color | Color | ✔️ |
border-bottom-color | Color | ✔️ |
border-left-color | Color | ✔️ |
border-radius | Length(可设置 4 个值,控制 4 个方向), 不支持百分比 | ✔️ |
border-top-left-radius | Length, 不支持百分比 | ✔️ |
border-top-right-radius | Length, 不支持百分比 | ✔️ |
border-bottom-left-radius | Length, 不支持百分比 | ✔️ |
border-bottom-right-radius | Length, 不支持百分比 | ✔️ |
border-style | 'dotted', 'dashed', 'solid' (4 个值,控制 4 个方向) | ✔️ |
border-top-style | 'dotted', 'dashed', 'solid' | ✔️ |
border-right-style | 'dotted', 'dashed', 'solid' | ✔️ |
border-bottom-style | 'dotted', 'dashed', 'solid' | ✔️ |
border-left-style | 'dotted', 'dashed', 'solid' | ✔️ |
opacity | Number | ✔️ |
display | 'flex', 'none', 'block' | ✔️ |
display | 'inline-block', 'inline-flex', 'inline' | ❌ |
overflow | 'hidden', 'visible', 'scroll', 'auto' | ✔️ |
transform | translate、translateX、translateY、translateZ、translate2d、translate3d、scale、scaleX、scaleY、scale3d、rotate、rotateX、rotateY、rotate3d | ✔️ |
transform-origin | Length(top/center/bottom) Length(left/center/right) | ✔️ |
animation | 仅支持 animation-name, animation-duration , animation-timing-function, animation-delay, animation-iteration-count, 暂不支持 style 设置 | ✔️ |
box-shadow | | ✔️ |
content | | ✔️ |