display | None / flex / block | flex | The default value can be obtained by[To configure](#Turn on the default block layout)to convert block |
position | relative / absolute / fixed | relative | fixed In the WeChat client 8.0.43 Version started to support, only support relative to the window viewport Positioning, not supported top / left / bottom / right Default value auto Parsing, z-index Only works on sibling nodessticky Can be used sticky-header/sticky-section Replace |
overflow | hidden / visible | visible | scroll Not supported, can only be obtained by scroll-view RealizationDoes not support separate settings overflow-x/y |
pointer-events | auto / None | auto | |
box-sizing | border-box / content-box | border-box | |
transform | None / <transform-function> | None | |
Transform-origin | left / Center / right / top / bottom / <length>{1, 2} | 50% 50% | |
z-index | <float> | 0 | Cascading context is not supported and only works for sibling nodesNot supported in the scroll-view Application on the direct child node under |
visibility | visible / hidden | visible | |
color | <color> | black | |
opacity | <float> | 1 | |
align-items | stretch / Center / flex-start / flex-end / Baseline | stretch | |
align-self | auto / stretch / Center / flex-start / flex-end / Baseline | auto | |
align-content | stretch / Center / flex-start / flex-end / space-between / space-around | auto | |
justify-content | Center / flex-start / flex-end / space-between / space-around / space-evenly | flex-start | |
flex-direction | row / row-reverse / column / column-reverse | column | |
flex-wrap | nowrap / wrap / wrap-reverse | nowrap | |
flex-grow | <float> | 0 | |
flex-shrink | <float> | 1 | |
flex-basis | <length> | auto | |
order | <float> | 0 | |
flex | | | Abbreviated property that supports parsing but with expanded property |
background-color | <color> | transparent | |
background-image | None / <image> | None | Does not support multiple images |
background-size | contain / cover / [<length> | auto]{1, 2} | auto | |
background-position | left / Center / right / top / bottom / <length> | 0 0 | Full support <bg-position> #, please refer to the MDN |
background-repeat | repeat-x / repeat-y / repeat / No-repeat | repeat | |
background | | | Abbreviated property that supports parsing but with expanded property |
width | <length> | auto | |
height | <length> | auto | |
min-width | <length> | auto | |
min-height | <length> | None | |
max-width | <length> | auto | |
max-height | <length> | None | |
left | <length> | auto | |
right | <length> | auto | |
top | <length> | auto | |
bottom | <length> | auto | |
padding | <length>{1,4} | 0 0 0 0 | |
padding-left | <length> | 0 | |
padding-top | <length> | 0 | |
padding-right | <length> | 0 | |
padding-bottom | <length> | 0 | |
margin | <length>{1,4} | 0 0 0 0 | |
margin-left | <length> | 0 | |
margin-top | <length> | 0 | |
margin-right | <length> | 0 | |
margin-bottom | <length> | 0 | |
border-left-width | <length> | 3 | |
border-left-style | <border-style> | None | |
border-left-color | <color> | black | The default value is the same as the web Different, web The default value is currentcolor |
border-top-width | <length> | 3 | |
border-top-style | <border-style> | None | |
border-top-color | <color> | black | The default value is the same as the web Different, web The default value is currentcolor |
border-right-width | <length> | 3 | |
border-right-style | <border-style> | None | |
border-right-color | <color> | black | The default value is the same as the web Different, web The default value is currentcolor |
border-bottom-width | <length> | 3 | |
border-bottom-style | <border-style> | None | |
border-bottom-color | <color> | black | The default value is the same as the web Different, web The default value is currentcolor |
border-width | | | Abbreviated property that supports parsing but with expanded property |
border-style | | | Abbreviated property that supports parsing but with expanded property |
border-color | | | Abbreviated property that supports parsing but with expanded property |
border-left | | | Abbreviated property that supports parsing but with expanded property |
border-right | | | Abbreviated property that supports parsing but with expanded property |
border-top | | | Abbreviated property that supports parsing but with expanded property |
border-bottom | | | Abbreviated property that supports parsing but with expanded property |
border | | | Abbreviated property that supports parsing but with expanded property |
box-shadow | None / inset? && <length>{2,4} && <color> ? | None | Does not support multiple overlays |
border-top-left-radius | <length>{1, 2} | 0 | border-radius wrong 0 When the four sides border-width Are inconsistent. The quadrilateral border-color and border-style Need for consistency |
border-top-right-radius | <length>{1, 2} | 0 | border-radius wrong 0 When the four sides border-width Are inconsistent. The quadrilateral border-color and border-style Need for consistency |
border-bottom-left-radius | <length>{1, 2} | 0 | border-radius wrong 0 When the four sides border-width Are inconsistent. The quadrilateral border-color and border-style Need for consistency |
border-bottom-right-radius | <length>{1, 2} | 0 | border-radius wrong 0 When the four sides border-width Are inconsistent. The quadrilateral border-color and border-style Need for consistency |
border-radius | | | Abbreviated property that supports parsing but with expanded property |
transition-property | None / all / transform / opacity etc. | all | Basically all support, not to enumerate |
transition-duration | <Time> | 0 | |
transition-timing-function | <timing-function> | <timing-function> | |
transition-delay | <Time> | 0 | |
transition | | | Abbreviated property that supports parsing but with expanded property |
font | | | Abbreviated property that supports parsing but with expanded propertyNot support caption / icon Etc. System Font |
font-size | <length> | 16px | Percentage not supportedNot support keyword (smaller..) |
line-height | normal / <number> / <length> / <percent> | normal | |
text-align | left / Center / right / justify / start / end | start | |
font-weight | normal / bold / <float> | normal | |
white-space | normal / nowrap / normal | | |
text-overflow | clip / ellipsis | clip | Acts only on text node |
word-spacing | normal / <length> | normal | |
letter-spacing | normal / <length> | normal | |
font-family | serif / sans-serif / minivan / cursive / fantasy / <string> | | |
font-style | normal / italic | normal | |
text-decoration-line | None / Underline / Overline / line-through | None | Acts only on text node |
text-decoration-style | solid / double / dotted / dashed / wavy | solid | Acts only on text node |
text-decoration-color | <color> | black | Acts only on text nodeDefault values and web Different, web The default value is currentcolor |
text-decoration | | | Abbreviated property that supports parsing but with expanded propertyCurrently only one type is supported.Does not support compound use text-decoration |
text-shadow | None / <color> ? && <length>{2,3} | None | |
backdrop-filter | None / [<filter-function>] | None | Not support multi functionNot support drop-shadowNot support urland opacity Mixing is problematic.blur Some cases are inconsistent |
filter | None / [<filter-function>] | None | Not support multi functionNot support drop-shadowNot support url |
mask-image | None / <image> | None | Does not support multiple images |
animation-delay | <Time> | 0 | |
animation-direction | normal / reverse / alternate / alternate-reverse | normal | |
animation-duration | <Time> | 0 | |
animation-fill-mode | forwards / both | None | None and backwards Not yet supported, all are forwards |
animation-iteration-count | Infinite / <number> | 1 | |
animation-name | None / <custom-ident> | None | |
animation-timing-function | <timing-function> | <timing-function> | |
animation | | | Abbreviated property that supports parsing but with expanded property |
will-change | auto / contents | auto | Declare draw boundaries and optimize rendering performance |