bootstrap 小点
2016-06-08 16:42
316 查看
checkbox对齐
<div class="checkbox"> <label> <input type="checkbox" class="">选项 </label> </div>
!important 被用来明确 CSS 样式的优先级 table表格 table //基本属性 table-bordered //显示表格线条 table-condensed //表格大格变小格 table-hover //鼠标移动变色 table-striped //隔行变色 table-responsive //在table的外层加上 使表格在宽度很小的时候出现下划线 form表单 form-inline //是表单内容left左浮动 form-horizontal //使label和控件水平布局 form-group //相当于 row 行 label //control-label来定义样式 input, textarea //使用form-control 来定义样式 <form action="" method="post" class="form-horizontal"> <div class="form-group"> <label for="name" class="control-label col-sm-2">用户:</label> <div id = "name" class="col-sm-10"> <!--<p class="form-control-static">张三</p>--> 张三 <textarea class="form-control" name="con" id="" cols="30" rows="10" placeholder="请输入内容~"></textarea> </div> </div> //标题字体颜色 <p class="text-success">...</p> //标题文字背景颜色 <p class="bg-primary">...</p> //ul li <div class="row list-group"> <a href="" class=" list-group-item"> //提示消息 div.alert alert-success //点击X隐藏内容 (data-dismiss="alert" alert 不能变固定的) <div class="alert"> <button type="button" class="close" data-dismiss="alert" >×</button> //三角形 <span class="caret"></span> //pull-left pull-right 让元素左/右浮动 div.pull-right //隐藏/显示 内容 div.show div.hidden .sr-only .invisible/.text-hide(内容隐藏块的高宽都还在) .visible-lg-* //除了大屏的时候显示,其它时候都隐藏 .hidden-lg //大屏的时候隐藏 ,其他屏都显示 //下拉框 (父div 为dropup向上下拉) //dropdown-menu-left / dropdown-menu-right 下拉框向右对齐 //divider 下划线 <div class="dropdown"> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> 标题 <span class="caret"></span> </button> <ul class="dropdown-menu"> <li>分类</li> <li class="divider"></li> //按钮组 //btn-group-vertical 竖着排列 //btn-group-justified 对齐到左右两边 (button 也要放到 .btn-group的div中) //btn-lg 按钮大小 //btn-group-lg 按钮组大小 <div class="btn-group"> <button ... <div class="btn-group"> 下拉框。。。 //输入框组 //input-group-btn 要是添加按钮就用这个class的div进行添加 //input-group-addon 添加组元素 <div class="input-group"> <div class="input-group-addon"> <span class="input-group-addon">@</span> </div> <input type="text" class="form-control"> //标签页 //nav-tabs 改为nav-pills 时标签样式变成按钮切换 //nav-justified 对齐到网络 //nav 加上 nav-stacked 竖着切换 <di> <ul class="nav nav-tabs nav-justified"> <li class="active"><a href="#aa" data-toggle="tab">aaaa</a> </li> <li><a href="#bb" data-toggle="tab">bbbb</a> </li> </ul> <div class="tab-content"> <div class="tab-pane active" id="aa">aa div</div> <div class="tab-pane" id="bb">bb div</div> </div> </di> //导航栏 //navbar-fixed-top /navbar-fixed-bottom 固定在顶部/底部 <nav class="navbar navbar-default navbar-fixed-top"> <div class="container"> ... </div> </nav>
相关文章推荐
- bootstrap row 下面的 col-md 高度相等 高度 一致 高度一样 有大用
- Hibernate 5的启动过程分析之SessionFactory
- (礼拜三log)前端开发,c foreach 标签 & 点击空白处时禁止Bootstrap模态框消失 & javascript的DFS算法
- Bootstrap 模态框避免点击背景处关闭
- BootStrap modal加入拖拽功能
- BootStrap modal加入拖拽功能
- JS组件Bootstrap实现弹出框和提示框效果代码
- bootstrap模板
- bootstrap实现的类似百度搜索的输入框自动完成功能(动态获取数据库的值)
- 基于Metronic的Bootstrap开发框架经验总结(9)--实现Web页面内容的打印预览和保存操作
- Bootstrap 学习之js插件(折叠(collapse)插件)
- Bootstrap是什么,Bootstrap里的文件分别表示什么?都有什么用?
- ClockPicker – 时钟风格 Bootstrap 时间选择器
- bootstrap tree及json
- 浅析BootStrap栅格系统
- BootStrap.css 在手机端滑动时右侧出现空白的原因及解决办法
- Bootstrap模态框(modal)垂直居中
- 自定义datetimepicker日期控件
- bootstrap输入框组代码分享
- Bootstrap学习笔记之css样式设计(2)