Skip to content

Latest commit

 

History

History
54 lines (39 loc) · 1.38 KB

position-size-layout.md

File metadata and controls

54 lines (39 loc) · 1.38 KB

This style control the positions、Sizes、Layouts

Position、Size

support pixel value、absolute value、percentage value、auto(content size)

Usage

const style = {
    "width": "50%" | "100px" | 100,
    "height": "100px",
    "left": 20,
    "top": "50px",
    "width": "auto",
}

Demo

test/style/size


Layout

support flex、grid、absolute layout

display, property with following value

position, property with following value

Usage

const style = {
    'position': 'absolute'
}

Spacing

used to controll line、row spacing,support pixel value、absolute value

Demo

test/scroll/3