bootstrap总结

  

bootstrap总结

  base css 我分为了几大类

1,列表

  .unstyled(无样式列表),.dl-horizontal(dl列表水平排列)

2,代码

  code(行级),pre(块级),.pre-scrollable(显示滚动条), 显示行号和美化: .prettyprint,.linenums

3,表格 
  .table(基础样式) .table-bordered(样式边框) , .table-striped(间隔效果) , .table-condensed(缩小表格)

4,表单 
  .from-inline(所有元素在一列) , .form-horizontal(没一横排一个表单项)

  .form-horizontal -->需要结合组件:

    fieldset.control-group 
      | 
      |-->label.control-label 
      | 
      |-->.controls

5,按钮

  .btn(基础样式) , .btn-primary(重要,蓝色) , .btn-info(信息,浅蓝), .btn-success(成功,绿色), .btn-warning(警告,黄色) .btn-danger(危险,红色) , .btn-inverse(相反,黑色)

6,标签

  .label(基础样式), .label-important(重要,红色) , .label-success(成功, 蓝色), .label-warning(警告,黄色), .label-info(信息,浅蓝色) .label-inverse(相反,黑色)

7,标记

  .badge(基础样式), .badge-success(成功,绿色), .badge-warning(警告,黄色),badge-error(错误,红色), .badge-info(信息,浅蓝色)

8,警告

  .alert(基础样式), .alert-success(成功,绿色), .alert-error(错误,红色), .alert-info(信息,蓝色) , .alert-block(获得更多的padding), 里面可以 .alert-heading(标题) , <a class="close" data-dismiss="alert"$amp;>amp;$amp;times;</a>(关闭按钮)

9,图标

  .icon-user(用户), .icon-drash(删除), .icon-refrash(刷新), .icon-cog(齿轮) icon-white(反白)

10,手风琴

  .accordion 
    | 
    |->.accordion-group 
    |  | 
    |  |->.accordion-heading 
    |  |  | 
    |  |  |->.accordion-toggle (data-toggle="collapse" #demo1" data-parent="#accordion2") 
    |  |   
    |  |->accordion-body 
    |  |  | 
    |  |  |->accordion-inner

组件。

1,导航

  .navbar (.navbar-fixed-top|.navbar-fixed-bottom) 
    | 
    |-->.navbar-inner 
      | 
      |->container 
        | 
        |->brand (项目名) 
        | 
        |->ul.nav (菜单) 
        |  | 
        |  |->li.divider-vertical 竖分割线 
        | 
        |->form.navbar-form(搜索框) 
        |  | 
        |  |->search-query 
        | 
        |->.dropdown (下拉菜单) 
        | 
        |->pull-right(使元素有右浮动)

2,面包屑

  ul.breadcrumb 
    | 
    |->li 
       | 
       |->a 
       | 
       |->span.divider(分割线<span class="divider">/</div>) 
3,排版

  (1) 主角元素 
  .hero-unit 
    | 
    |->h1(主标题) 
    | 
    |->p(副内容)

  (2) 页面标题,有下边框 
  .page-header 
    | 
    |->h1 
      |->small

4,tab页

  div.tabbable (tabs-below|tabs-left|tabs-bottom) 
    | 
    |->ul.nav (nav-tabs|nav-pills|nav-list) nav-stracked(竖立折叠式) 
    |    | 
    |    |->li.active 
    |    |  | 
    |    |  |->a--> #id", data-toggle="tab" 
    |    | 
    |    |->li.nav-header (nav-list时用,表示一个菜单头) 
    |    | 
    |    |->li.divider(nav-list时用,分割线) 
    |    | 
    |    |->li.dropdown 
    | 
    |->tab-content 
    |  | 
    |  |->div#id .tab-pane (active)        

5,缩略列表

  ul.thumbnails 
    | 
    |->li.span* 
      | 
      |->.thumbnail 
        | 
        |->(.caption) 详情描述

6,按钮组

  .btn-toolbar 
    | 
    |->.btn-group 
      | 
      |->.btn

7,下拉菜单 
   
  .btn-group | .dropdown |.dropup 
    | 
    |->.btn .dropdown-toggle (data-toggle="dropdown") 
    |  | 
    |  |->span.caret 
    |   
    |->ul.dropdown-menu 
      | 
      |->li.divider

8,进度条

  .progress (.progress-striped| .actvie) 
    | 
    |->.bar ()

9,页码

  .pagination (.pagination-centered|.paginaction-right) 
    | 
    |->ul 
       | 
       |->li(.active)

javascript:

1,对话框

  (1)对话框组件:

  .modal (设置宽度) 
    | 
    |->.modal-header 
    |  | 
    |  |->.close (data-dismiss="modal") [注,.close必须放在前面] 
    |  | 
    |  |->h3 
    | 
    |->.modal-body 
    | 
    |->.modal-footer 
    |   | 
    |  |->.btn

    (2)标记触发

    <a #mymodal" data-toggle="modal" data-backdrop="false" data-keyboard="false">打开对话框</a>

    (3)javascript

    a)初始化:

    $("#mymodal").modal({ 
      dropback:true, 
      keyboard:true, 
      show:true 
    });

    b) 触发

    $("#mymodal").modal(

bootstrap小结的更多相关文章

  1. Bootstrap 小结

    Bootstrap 小结 Bootstrap4特点:1.兼容IE10+ 2.使用flexbox 布局 3.抛弃Nomalize.css 4.提供布局和 reboot 版本 Bootstrap组成:1. ...

  2. bootStrap小结3

    <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Conten ...

  3. bootStrap小结2

    <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Conten ...

  4. bootStrap小结1

    <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...

  5. Node.js + Express 构建的订餐系统

    Node.js的版本 - v0.8.12 Express的版本 – v3.3.3  (安装 $ npm install -g express) 系统的登录逻辑是:获取用户名 + 密码,向内网RTX服务 ...

  6. 关于Bootstrap table的回调onLoadSuccess()和onPostBody()使用小结

    关于Bootstrap table的回调onLoadSuccess()和onPostBody()使用小结 Bootstrap table 是一款基于 Bootstrap 的 jQuery 表格插件, ...

  7. Bootstrap 时间日历插件bootstrap-datetimepicker配置与应用小结

    Bootstrap时间日历插件bootstrap-datetimepicker配置与应用小结   by:授客 QQ:1033553122 1.   测试环境 win7 JQuery-3.2.1.min ...

  8. Bootstrap Bootstrap表格插件bootstrap-table配置与应用小结

    Bootstrap表格插件bootstrap-table配置与应用小结   by:授客 QQ:1033553122 1.   测试环境 win7 JQuery-3.2.1.min.js 下载地址: h ...

  9. bootstrap与Select2使用小结

    这个select2组件的功能确实很强大,可以将图片放入到select里面随着文字一起显示. 组件的下载地址以及API说明地址: 1.Select2使用示例地址:https://select2.gith ...

随机推荐

  1. itext poi 学习之旅 (2)创建excel

    Computer.java package com.qiang.poi; public class Computer { private int id; private String name; pr ...

  2. (原)torch使用caffe时,提示CUDNN_STATUS_EXECUTION_FAILED

    转载请注明出处: http://www.cnblogs.com/darkknightzh/p/6230227.html 提前说明:此文不能真正解决该问题,具体原因我也不知道... 以前使用某台电脑A上 ...

  3. css透明度的一些兼容测试

    前言 网站丢给了外包公司来弄,但是老外写css的时候似乎没有考虑到国内的浏览器市场,于是只用了opacity这个属性来写,当IE8-的浏览器访问的时候,浮动层就像一块大黑斑药膏贴在哪里.很显然,婀娜多 ...

  4. VC2013 添加库文件

    1.项目--〉属性--〉链接器 1. You #include the header file (.h) file in your project as necessary.   2. You lis ...

  5. Qt事件机制浅析(定义,产生,异步事件循环,转发,与信号的区别。感觉QT事件与Delphi的事件一致,而信号则与Windows消息一致)

    Qt事件机制 Qt程序是事件驱动的, 程序的每个动作都是由幕后某个事件所触发.. Qt事件的发生和处理成为程序运行的主线,存在于程序整个生命周期. Qt事件的类型很多, 常见的qt的事件如下: 键盘事 ...

  6. 装饰者模式 - OK

    装饰模式(Decorator),动态地给一个对象添加一些额外的职责,就增加功能来说,装饰模式比生成子类更为灵活.  装饰者模式隐含的是通过一条条装饰链去实现具体对象,每一条装饰链都始于一个Compon ...

  7. Java Json开源解析包 google-gson download(下载)

    官方下载地址:http://code.google.com/p/google-gson/ http://files.cnblogs.com/hnrainll/google-gson-2.1-relea ...

  8. 【转】Math.Atan2 方法

    原文网址:https://msdn.microsoft.com/zh-cn/library/system.math.atan2.aspx 返回正切值为两个指定数字的商的角度. 命名空间:  Syste ...

  9. VMWare 虚拟机

    http://pan.baidu.com/share/link?shareid=5873&uk=941708466 VMWare是虚拟化解决方案厂商,旗下有多款虚拟机软件产品,其中最知名的要数 ...

  10. poj2752 Seek the Name, Seek the Fame

    Description The little cat is so famous, that many couples tramp over hill and dale to Byteland, and ...