【BootStrap】 基础
2015-07-20 16:46
633 查看
【BootStrap】 基础
一. 自适应(针对不同设备如手机平板笔电,使页面的宽度适应设备宽度)
<meta name="viewport" content="width=device-width, initial-scale=1">
二. 布局
1. 容器 .container
2. 栅格 .row - 最主要的布局样式 (注意 row 是百分比宽度,这个用起来不是很方便的)
a. 一行最多包含12个单元格,超出12个会再起一行
b. 单元格样式
c. 为了让一个页面在不同设备上显示良好,可以把手机,平板,笔电等样式都添加上,栅格会自行调整布局
三. 实用标签
1. small - 小号文字(可用作副标题)
2. mark - 高亮
3. del/s - 文字上加划线
4. ins/u - 下划线
5. strong - 加粗
6. em - 斜体
7. abbr - 帮助信息
8. cite - tips
四. 实用样式
1. 字体样式
a. 对齐方式: text-left ,text-center,text-right,text-justify
b. text-nowrap - 不换行
c. 大小写 : text-lowercase , text-uppercase , text-capitalize
2. 列表样式
a. list-unstyled - 无样式
b. list-inline - 水平列表
3. 表格样式
a. table - 每行带分割线
b. table-striped - 隔行变色
c. table-bordered - 带边框
d. table-hover - 悬浮效果
e. table-condensed - 使表格变得紧凑
f. active , success , info , warning , danger- tr 的样式
g. table-responsive - 将表格置于该容器内,表格将实现自适应
一. 自适应(针对不同设备如手机平板笔电,使页面的宽度适应设备宽度)
<meta name="viewport" content="width=device-width, initial-scale=1">
二. 布局
1. 容器 .container
2. 栅格 .row - 最主要的布局样式 (注意 row 是百分比宽度,这个用起来不是很方便的)
a. 一行最多包含12个单元格,超出12个会再起一行
b. 单元格样式
.col-xs-(手机),(笔电),.col-sm-(平板),[code].col-md-
.col-lg-(大屏桌面)[/code]
c. 为了让一个页面在不同设备上显示良好,可以把手机,平板,笔电等样式都添加上,栅格会自行调整布局
三. 实用标签
1. small - 小号文字(可用作副标题)
2. mark - 高亮
3. del/s - 文字上加划线
4. ins/u - 下划线
5. strong - 加粗
6. em - 斜体
7. abbr - 帮助信息
8. cite - tips
四. 实用样式
1. 字体样式
a. 对齐方式: text-left ,text-center,text-right,text-justify
b. text-nowrap - 不换行
c. 大小写 : text-lowercase , text-uppercase , text-capitalize
2. 列表样式
a. list-unstyled - 无样式
b. list-inline - 水平列表
3. 表格样式
a. table - 每行带分割线
b. table-striped - 隔行变色
c. table-bordered - 带边框
d. table-hover - 悬浮效果
e. table-condensed - 使表格变得紧凑
f. active , success , info , warning , danger- tr 的样式
g. table-responsive - 将表格置于该容器内,表格将实现自适应
相关文章推荐
- bootstrap 笔记01
- bootstrap模态框和select2合用时input无法获取焦点
- 每天一个小知识点6(bootstrap总结)
- bootstrap对于自己的小bug(需要调整的代码)
- Bootstrap tab left css
- bootstrap基础代码
- 修改InitPHP的分页类 使用BootStrap
- 解决bootstrap switch 开关OFF被断开导致排版混乱的问题
- 基于Hibernate+Spring+Spring MVC+Bootstrap的管理系统实现
- 用一种无耻的方式解决bootstrapvalidator不支持中国id验证的方法
- 让IE6 IE7 IE8 IE9 IE10 IE11支持Bootstrap的解决方法
- django-bootstrap第一个登录页面
- 使用Bootstrap 他写道网站
- bootstrap 类 归类
- bootstrap js插件篇——手风琴、图片轮播
- bootstrap js插件篇——按钮、固定定位
- 【BootStrap】初步教程
- Bootstrap 模态框、轮播 结合使用
- 什么是Bootstrap
- 一张图让你看懂Bootstrap的栅格系统