BootStrap常用样式

常用带媒体查询的标签

Display

d-*-block
d-*-flex
d-*-inline
d-*-inline-block

Flex

flex-*-column
flex-*-row
flex-*-wrap
justify-content-*-start
justify-content-*-end
justify-content-*-center
justify-content-*-between
align-content-*-start
align-content-*-end
align-content-*-center
align-items-*-start
align-items-*-end
align-items-*-center
align-self-*-start
align-self-*-end
align-self-*-center

文本

text-*-left
text-*-right
text-*-center

定位

float-*-left
float-*-right

间距

m-1 / m-*-#
mt-1 / mt-*-#
mr-1 / mr-*-#
mb-1 / mb-*-#
ml-1 / ml-*-#
mx-1 / mx-*-#
my-1 / my-*-#
p-1 / p-*-#
pt-1 / pt-*-#
pr-1 / pr-*-#
pb-1 / pb-*-#
pl-1 / pl-*-#
px-1 / px-*-#
py-1 / py-*-#

表格

table-*-responsive

隐藏元素

适应屏幕大小 样式
Hidden on all .d-none
Hidden only on xs .d-none .d-sm-block
Hidden only on sm .d-sm-none .d-md-block
Hidden only on md .d-md-none .d-lg-block
Hidden only on lg .d-lg-none .d-xl-block
Hidden only on xl .d-xl-none
Visible on all .d-block
Visible only on xs .d-block .d-sm-none
Visible only on sm .d-none .d-sm-block .d-md-none
Visible only on md .d-none .d-md-block .d-lg-none
Visible only on lg .d-none .d-lg-block .d-xl-none
Visible only on xl .d-none .d-xl-block

Bootstrap4.3.1速查表

https://ren-wei.github.io/manual/bootstrap/index.html

 522 total views,  8 views today

Revisions

Comments are closed.