• 基本实例样式

    • 效果
    • 代码
      <!DOCTYPE html>
      <html lang="en">
      <head>
      <meta charset="UTF-8">
      <title>用户管理页面</title> <!-- Bootstrap core CSS -->
      <link href="css/bootstrap.min.css" rel="stylesheet">
      <link href="css/dashboard.css" rel="stylesheet"> <script src="js/jquery.min.js"></script>
      <script src="bootstrap-4.3.1-dist/js/bootstrap.min.js"></script> <script src="https://cdn.staticfile.org/vue/2.4.2/vue.min.js"></script>
      <script src="https://cdn.staticfile.org/vue-router/2.7.0/vue-router.min.js"></script>
      </head>
      <body> <!-- container自适应 -->
      <div class="container">
      <!-- 为表格添加基础样式 ,.table为任意<table>添加基本样式 -->
      <table class="table">
      <!-- 表格标题行的容器元素,用来识别表格列 -->
      <thead>
      <tr>
      <!-- 特殊的表格单元格,用来识别行或列 -->
      <th>测试标题</th>
      <th>测试标题</th>
      <th>测试标题</th>
      <th>测试标题</th>
      <th>测试标题</th>
      </tr>
      </thead>
      <!-- 表格主题中的表格行的容器元素 -->
      <tbody>
      <!-- 一组出现在单行单元格的容器元素 -->
      <tr>
      <!-- 默认的表格单元格 -->
      <td>测试内容</td>
      <td>测试内容</td>
      <td>测试内容</td>
      <td>测试内容</td>
      <td>测试内容</td>
      </tr>
      <tr>
      <td>测试内容</td>
      <td>测试内容</td>
      <td>测试内容</td>
      <td>测试内容</td>
      <td>测试内容</td>
      </tr>
      </tbody>
      </table>
      </div> </body>
      </html>
  • 条纹状表格
    • 效果
    • 代码
      <!DOCTYPE html>
      <html lang="en">
      <head>
      <meta charset="UTF-8">
      <title>用户管理页面</title> <!-- Bootstrap core CSS -->
      <link href="css/bootstrap.min.css" rel="stylesheet">
      <link href="css/dashboard.css" rel="stylesheet"> <script src="js/jquery.min.js"></script>
      <script src="bootstrap-4.3.1-dist/js/bootstrap.min.js"></script> <script src="https://cdn.staticfile.org/vue/2.4.2/vue.min.js"></script>
      <script src="https://cdn.staticfile.org/vue-router/2.7.0/vue-router.min.js"></script>
      </head>
      <body> <div class="container">
      <!-- .table-striped可以给tbody之内的每一行添加斑马条纹样式 -->
      <table class="table table-striped"> <thead>
      <tr> <th>测试标题</th>
      <th>测试标题</th>
      <th>测试标题</th>
      <th>测试标题</th>
      <th>测试标题</th>
      </tr>
      </thead> <tbody> <tr> <td>测试内容</td>
      <td>测试内容</td>
      <td>测试内容</td>
      <td>测试内容</td>
      <td>测试内容</td>
      </tr>
      <tr>
      <td>测试内容</td>
      <td>测试内容</td>
      <td>测试内容</td>
      <td>测试内容</td>
      <td>测试内容</td>
      </tr>
      </tbody>
      </table>
      </div> </body>
      </html>
  • 带边框表格
    • 效果
    • 代码
      <!DOCTYPE html>
      <html lang="en">
      <head>
      <meta charset="UTF-8">
      <title>用户管理页面</title> <!-- Bootstrap core CSS -->
      <link href="css/bootstrap.min.css" rel="stylesheet">
      <link href="css/dashboard.css" rel="stylesheet"> <script src="js/jquery.min.js"></script>
      <script src="bootstrap-4.3.1-dist/js/bootstrap.min.js"></script> <script src="https://cdn.staticfile.org/vue/2.4.2/vue.min.js"></script>
      <script src="https://cdn.staticfile.org/vue-router/2.7.0/vue-router.min.js"></script>
      </head>
      <body>
      <div class="container">
      <!--
      .table-bordered为表格和其中的每个单元格增加边框
      -->
      <table class="table table-bordered"> <thead>
      <tr> <th>测试标题</th>
      <th>测试标题</th>
      <th>测试标题</th>
      <th>测试标题</th>
      <th>测试标题</th>
      </tr>
      </thead> <tbody> <tr> <td>测试内容</td>
      <td>测试内容</td>
      <td>测试内容</td>
      <td>测试内容</td>
      <td>测试内容</td>
      </tr>
      <tr>
      <td>测试内容</td>
      <td>测试内容</td>
      <td>测试内容</td>
      <td>测试内容</td>
      <td>测试内容</td>
      </tr>
      </tbody>
      </table>
      </div> </body>
      </html>

bootstrap实现表格的更多相关文章

  1. JS组件系列——Bootstrap Table 表格行拖拽(二:多行拖拽)

    前言:前天刚写了篇JS组件系列——Bootstrap Table 表格行拖拽,今天接到新的需要,需要在之前表格行拖拽的基础上能够同时拖拽选中的多行.博主用了半天时间研究了下,效果是出来了,但是感觉不尽 ...

  2. Bootstrap Table表格一直加载(load)不了数据-解决办法

    bootstrap-table是一个基于Bootstrap风格的强大的表格插件神器,官网:http://bootstrap-table.wenzhixin.net.cn/zh-cn/ 这里列出遇到的一 ...

  3. C# bootstrap之表格动态绑定值

    这段时间研究了下bootstrap,打算从表格开始学习,实现动态绑定值,在网上找了挺多例子,但是很少有写全的,要不就太复杂,实现效果后总结一下,直接拷贝过去可以用. 第一步:先去官网上下载bootst ...

  4. BootStrap的表格加载json数据,并且可以搜索,选择

    2018.4.11日更新,8号的时候我推荐去官网下载,但是那个版本不知道为什么我无法使用 $table.bootstrapTable('getSelections'); 无论如何...然后我尝试着更换 ...

  5. Bootstrap关于表格

    1.Bootstrap为表格提供了1种基础样式和4种附加样式以及1个支持响应式的表格. ☑  .table:基础表格 ☑  .table-striped:斑马线表格 ☑  .table-bordere ...

  6. JS组件系列——Bootstrap Table 表格行拖拽

    前言:之前一直在研究DDD相关知识,好久没更新JS系列文章了.这两天做了一个简单的业务需求,觉得效果还可以,今天在这里分享给大家,欢迎拍砖~~ 一.业务需求及实现效果 项目涉及到订单模块,那天突然接到 ...

  7. bootstrap 分页表格插件

    找了两个table的插件,一个是bootstrap table ,另一个是bootstrap-paginator 这里只介绍 bootstrap table 插件 使用及简单案例 文档介绍:http: ...

  8. 转载:Bootstrap之表格checkbox复选框全选

    转:http://blog.csdn.net/shangmingchao[商明超的博客] 效果图: HTML中无需添加额外的一列来表示复选框,而是由JS完成,所以正常的表格布局就行了: 版权声明:如需 ...

  9. Bootstrap之表格checkbox复选框全选

    效果图: HTML中无需添加额外的一列来表示复选框,而是由JS完成,所以正常的表格布局就行了: <table class="table table-bordered table-hov ...

  10. Bootstrap Table 表格参数详解

    表格参数 名称   标签   类型   默认   描述   - data-toggle String 'table' 不用写 JavaScript 直接启用表格. classes data-class ...

随机推荐

  1. DDD「领域驱动设计」分层架构初探

    前言 基于 DDD 传统分层架构实现. 项目 github地址:https://github.com/WuMortal/DDDSample 这个分层架构是工作中项目正在使用的分层架构,使用了一段时间发 ...

  2. ADB环境搭建 -- For Windows 10

    一.安装 ADB: ADB下载链接:http://adbshell.com/upload/adb.zip       ADB官网:http://adbshell.com/ 下载好后,建议直接把文件解压 ...

  3. 流程控制之while循环

    目录 语法(掌握) while+break while+continue while循环的嵌套(掌握) tag控制循环退出(掌握) while+else(了解) 语法(掌握) 循环就是一个重复的过程, ...

  4. Python之父重回决策层,社区未来如何发展?

    春节假期结束了,大家陆续地重回到原来的生活轨道上.假期是一个很好的休息与调节的机会,同时,春节还有辞旧迎新的本意,它是新的轮回的开端. 在 Python 社区里,刚发生了一件大事,同样有开启新纪元的意 ...

  5. windows下,提权代码.

    #include <windows.h> bool AdjustPrivileges() { HANDLE hToken = NULL; TOKEN_PRIVILEGES tp; TOKE ...

  6. <转载>Android性能优化之HashMap,ArrayMap和SparseArray

    本篇博客来自于转载,打开原文地址已经失效,在此就不贴出原文地址了,如原作者看到请私信我可用地址,保护原创,人人有责.   Android开发者都知道Lint在我们使用HashMap的时候会给出警告—— ...

  7. Python动态绑定属性slots的使用

    当我们定义了一个class,创建了一个class的实例后,我们可以给该实例绑定任何属性和方法,这就是动态语言的灵活性.废话不多说,我们看一个例子: class Person(object): pass ...

  8. h5实现实时时钟

    <!DOCTYPE html> <html> <head> <meta charset="UTF-8"/> <meta nam ...

  9. Android新手引导库推荐

    本文同步至http://javaexception.com/archives/31 介绍一波新手引导层的库.都是star数挺高的一些库. 1.NewbieGuide(国内开发者开发) Android ...

  10. SQL2005打SP4补丁报错:无法安装Windows Installer MSP文件解决方案

    错误如图: 解决方案分享如下: 第一步:卸载下图红框圈住的玩艺. 第二步:把SP4补丁文件解压,找到下图红框圈住的玩艺: 第三步:重新运行SP4补丁安装文件,安装正常.