bootstrap初探
2015-10-31 11:57
615 查看
bootstrap资源
http://getbootstrap.com http://github.com/twbs http://www.bootcss.com
bootstrap栅格系统
容器:流体(container-fluid)、固定(container)
分12列,阈值 分辨率>=1200,container固定尺寸为1170px,若阈值在992到1200之间container固定尺寸为970px,若分辨率在992以下778以上为750px,778px以下为自适应,没有固定的宽度值
分为12列,可根据列数确定,demo如下
View Code
http://getbootstrap.com http://github.com/twbs http://www.bootcss.com
bootstrap栅格系统
容器:流体(container-fluid)、固定(container)
分12列,阈值 分辨率>=1200,container固定尺寸为1170px,若阈值在992到1200之间container固定尺寸为970px,若分辨率在992以下778以上为750px,778px以下为自适应,没有固定的宽度值
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>无标题文档</title> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="css/bootstrap.css"> <style> .container{ border:1px #000 solid;} </style> </head> <body> <!--<div class="container-fluid"> aaaaaaaaa </div> --> <div class="container"> aaaaaaaaa </div> </body> <script src="js/jquery-2.1.3.js"></script> <script src="js/bootstrap.js"></script> </html>
分为12列,可根据列数确定,demo如下
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>无标题文档</title> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="css/bootstrap.css"> <style> .container{ border:1px #000 solid; background: #CCC;} div[class^=col-] { color: white; border: 1px solid red;} </style> </head> <body> <div class="container"> <div class="row"> <div class="col-lg-2">col-lg-2</div> <div class="col-lg-10">col-lg-10</div> </div> <div class="row"> <div class="col-lg-2 col-lg-push-10">col-lg-2</div> <div class="col-lg-10 col-lg-pull-2">col-lg-10</div> </div> </div> </body> <script src="js/jquery-2.1.3.js"></script> <script src="js/bootstrap.js"></script> </html>
View Code
相关文章推荐
- [置顶] Bootstrap导航栏实例讲解
- Bootstrap:简洁、直观、强悍的前端开发框架
- 使用bootstrap+asp.net mvc4+IBatis.Net实现的小程序
- bootstrap下 图片轮播的实现
- bootstrap IE兼容
- BootStrap学习笔记-1
- JS组件系列——Bootstrap Table 表格行拖拽
- Bootstrap-fileinput 多图片上传编辑
- 高德地图API使用笔记 -- bootstrap样式与高德地图兼容的问题
- lance年前第一波大礼,bootstrap html5 模版,希望大家喜欢。
- Bootstrap导航条鼠标悬停下拉菜单
- 10个可以替代Bootstrap的前端框架
- 对Bootstrap分页封装使用
- bootstrap 内容简略显示
- bootstrap的栅格系统
- bootstrap中弹出窗体dialog的自定义
- bootstrap display属性
- rails 使用bootstrap及bootswatch
- bootstrap datatimepicker 汉化
- Bootstrap_Datatable Ajax请求两次问题的解决