下载此文档

详解Bootstrap网格垂直和水平对齐方式.doc


文档分类:IT计算机 | 页数:约3页 举报非法文档有奖
1/3
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/3 下载此文档
文档列表 文档介绍
详解Bootstrap格垂直和水平对齐方式
目录
-1、Bootstraps格布局
-2、垂直对齐
°
:
•3水平对齐
。.1ro标签中设置垂直对齐
1、Bootstv>
srptsr
body>
t、l>
ootstrap5/bootstrap.
.js"></script

ass="
rowa
lass=
"col
lass=
"col
ass=
"col
ass="
rowa
lass=
"col
lass=
"col
ass=
"col

通过在co标签中添加l、llr、lc可以更改列在行中的垂直对齐方式,以上三个标签分别
为顶部对齐、居中对齐、底部对齐。以下是一段演示代码和效果图,代码中c代码设置背景色和间距,方便查看效果。
ocl
cr
11
c
linkhref="style>
"viewport
"keyword"decript
、oottrap5
co
cooco
/、ootstra
"width=

device
rl
-width,
rl
initial-
nofollow"re
scale=1">
l="externa
lnofollow"r
.row{、ackgrou
colorr

ight:26
0px;marg
in:30px;}
.col{、ackgrou
colorr
111
111.
842);h
ding:30p
x;margin
/style>
垂直对齐演示
title>
、ody>
cl
"containe
r">
<divclass
rowl
tart">
cl
coll
n-self-st
r
cl
coll
-self-ce
ter"></
cl
coll
-self-en
crip
tsrc="
、oots
trap5
/、oo
ody>
l

3、水平对齐

通过在row标签中添加
c、o
acorn、t
c、oejnr
cdon、
roy
co、wco可以更改列在行中的水平对齐方式。以下是一段演示代码和效果图,代码中c代码
设置背景色和间距,方便查看效果。
doctypehtm
tmllang="z
l>
<metacharse
"viewport
"content="wi
="keywords
"content="">
"descript
ion"content=
<linkhref="
style>style>
、ootstrap5
/、
.row{、ackgrou
nd-color:rg
、a(0,0,255
.col

详解Bootstrap网格垂直和水平对齐方式 来自淘豆网m.daumloan.com转载请标明出处.

非法内容举报中心
文档信息
  • 页数3
  • 收藏数0 收藏
  • 顶次数0
  • 上传人小s
  • 文件大小106 KB
  • 时间2022-06-04