BootStrap(一)
来源:互联网 发布:matlab 生成稀疏矩阵 编辑:程序博客网 时间:2024/06/06 04:56
BootStrap(一)
其实BootStrap的使用还是关于他的一些class的使用 基本的css如下:
1.首先container类 屏幕左右两段外间距是15px ,所用类 是 container ,container-fluid
2.栅栏格局 可以将网页分为12列
每一行是一个row 对于每一个row 可用col-屏幕大小-所占栏数
其中屏幕大小有xs 超小(手机) sm较小(平板) md中等(电脑) lg较大(大屏幕) 所用类有:row,col-x-x
代码如下:
<div class="container"> <div class="row"> <div class="col-md-3">占3列</div> <div class="col-md-9">占9列</div> </div> </div>
3.排版 一些重新定义的标签
h标签 ,small标签 strong标签,em标签,abbr缩写提示标签 ,address标签,blockquote标签,pre标签,code标签,kbd标签
lead类 凸显段落
4.表格
表格常用的类: table table-striped table-hover table-bordered
对于每一个tr 又可以凸显颜色 带颜色的类 info ,success,warning,danger
自适应表格的类 table-responsive
5.表单
表单用到的类 form-inline , form-horizontal ,form-group , form-control , control-label , ckeck , radio
表单中 input 的type 类型 有:text,password,datetime,datetime-local,date,month,time,week,number,email,url,search,tel和color。
6.按钮
按钮常用到的类有btn btn-颜色 btn-大小
7.图片
图片用到的类有 img-rounded img-circle img-thumbnail
父标签中用img-responsive
8.辅助的类
文本的 text-primary text-success text-warning text-muted
text-danger text-info
背景的 bg-primary bg-info bg-success bg-warning bg-danger
其他浮动 pull-left pull-right center-block clearfix show
hidden sr-only text-hide close caret
- Bootstrap学习(一)
- bootstrap-table(一)
- Bootstrap总结(一)
- 关于Bootstrap(一)
- 认识BootStrap(一)
- Bootstrap学习(一)
- Bootstrap(一)
- Bootstrap学习(一)
- Bootstrap(一)
- bootstrap 基础(一)
- bootstrap 基础(一)
- bootstrap基础(一)
- BootStrap(一)
- BootStrap入门(一)
- bootstrap教程(一)--bootstrap简介
- bootstrap教程(一)--bootstrap简介
- Bootstrap学习笔记(一)
- bootstrap按钮组(一)
- C++ 构造函数后面的冒号的作用
- laravel 学习笔记——路由(路由与控制器、资源路由)
- 数据库主从、主主,负载均衡,高可用
- 单例软件设计模式初解
- 深入理解Spring MVC 思想
- BootStrap(一)
- 文字超出隐藏并显示省略号
- restful接口
- HDU 5277 YJC counts stars 最大团+暴力
- FP-growth
- VMDK(VMWare Virtual Machine Disk Format)是虚拟机VMware创建的虚拟硬盘格式
- 2.1 浏览因特网资源
- Mysql (InnoDB引擎)聚集索引和辅助索引
- VC++ MFC DLL动态链接库编写详解