Skip to content

尺寸

width

CSSStyle备注
w-10width:10rpx;
w-10pxwidth:10px;
w-100%width:100%;
w-autowidth:auto;
twh-10width:10rpx;height:10rpx;同时设置宽度和高度
twhr-10width:10rpx;height:10rpx;radius:10rpx;同时设置宽度、高度和圆角
ws-10min-width:10rpx;
ws-10pxmin-width:10px;
ws-100%min-width:100%;
wl-10max-width:10rpx;
wl-10pxmax-width:10px;
wl-100%max-width:100%;

height

CSSstyle备注
h-10height:10rpx;
h-10pxheight:10px;
h-100%height:100%;
h-autoheight:auto;
twh-10width:10rpx;height:10rpx;同时设置宽度和高度
twhr-10width:10rpx;height:10rpx;radius:10rpx;同时设置宽度、高度和圆角
hs-10min-height:10rpx;
hs-10pxmin-height:10px;
hs-100%min-height:100%;
hl-10max-height:10rpx;
hl-10pxmax-height:10px;
hl-100%max-height:100%;

margin

cssstyle备注
m-10margin:10rpx;
m-10pxmargin:10px;
m-100%margin:100%;
m-automargin:auto;
mt-10margin-top:10rpx;
mb-10margin-bottom:10rpx;
ml-10margin-left:10rpx;
mr-10margin-right:10rpx;
mtb-10margin-top:10rpx;margin-bottom:10rpx;
mlr-10margin-left:10rpx;margin-right:10rpx;
mltr-10margin-left:10rpx;margin-top:10rpx;margin-right:10rpx;
---lrtb 方向可任意组合,请参考margin

padding

cssstyle备注
p-10padding:10rpx;
p-10pxpadding:10px;
p-100%padding:100%;
p-autopadding:auto;
---lrtb 方向可任意组合,请参考margin参考margin

radio

cssstyle备注
r-10border-radius:10rpx;
r-10pxborder-radius:10px;
r-100%border-radius:100%;
r1-10border-top-left-radius:10rpx;
r2-10border-top-right-radius:10rpx;
r3-10border-bottom-left-radius:10rpx;
r4-10border-bottom-right-radius:10rpx;
...1234 方向可任意组合,请参考margin参考margin