Bootstrap:前端开发框架
框架:一套半成品软件,直接拿来用
响应式布局:同一套页面可以兼容不同分辨率的设备
下载/引入:vscode搜索bootstrap插件安装
响应式布局
依赖于栅格系统,将一行平均12个格子,可以指定元素占几个格子
例:<div>pc显示4个格子,手机占12个格子
定义容器
container:固定宽度有留白
container-fluid::100宽度
定义行row 定义元素col-设备代号-格子数目
设备代号:xs超小, sm小屏幕: md:中等屏幕lg:大屏幕
*一行格子超过12,则自动换行
*向上兼容:适用于大于等于屏幕大小;如果设备宽度小于设备代号的最小值,默认一个元素占满一整行
CSS样式:
按钮
图片
相应式图片:class="img-responsive",一直都是100%
形状:img-round,img-circle,img-thumbnail
表格
class=
"table""table-hover"(鼠标悬停);
表单
form-control
CSS组件:
导航条
组件 · Bootstrap v3 中文文档 | Bootstrap 中文网
分页条
组件 · Bootstrap v3 中文文档 | Bootstrap 中文网
轮播图