1 Star 0 Fork 460

dispatch_async/hplus

forked from 若依/hplus 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
table_bootstrap.html 30.26 KB
一键复制 编辑 原始数据 按行查看 历史
若依 提交于 2020-05-30 18:20 . 升级Bootstrap版本到v3.3.7
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>H+ 后台主题UI框架 - Bootstrap Table</title>
<meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
<meta name="description" content="H+是一个完全响应式,基于Bootstrap3最新版本开发的扁平化主题,她采用了主流的左右两栏式布局,使用了Html5+CSS3等现代技术">
<link rel="shortcut icon" href="favicon.ico"> <link href="css/bootstrap.min.css?v=3.3.7" rel="stylesheet">
<link href="css/font-awesome.css?v=4.4.0" rel="stylesheet">
<link href="css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
<link href="css/animate.css" rel="stylesheet">
<link href="css/style.css?v=4.1.0" rel="stylesheet">
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>Bootstrap table <a href="http://bootstrap-table.wenzhixin.net.cn/zh-cn/" target="_blank">http://bootstrap-table.wenzhixin.net.cn/zh-cn/</a></h5>
<div class="ibox-tools">
<a class="collapse-link">
<i class="fa fa-chevron-up"></i>
</a>
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
<i class="fa fa-wrench"></i>
</a>
<ul class="dropdown-menu dropdown-user">
<li><a href="#">选项1</a>
</li>
<li><a href="#">选项2</a>
</li>
</ul>
<a class="close-link">
<i class="fa fa-times"></i>
</a>
</div>
</div>
<div class="ibox-content">
<p>Bootstrap table是国人开发的一款基于 Bootstrap 的 jQuery 表格插件,通过简单的设置,就可以拥有强大的单选、多选、排序、分页,以及编辑、导出、过滤(扩展)等等的功能。目前在github上已经有2600多个Star,可见其受欢迎程度。</p>
<ul>
<li>支持 Bootstrap 3 和 Bootstrap 2</li>
<li>自适应界面</li>
<li>固定表头</li>
<li>非常丰富的配置参数</li>
<li>直接通过标签使用</li>
<li>显示/隐藏列</li>
<li>显示/隐藏表头</li>
<li>通过 AJAX 获取 JSON 格式的数据</li>
<li>支持排序</li>
<li>格式化表格</li>
<li>支持单选或者多选</li>
<li>强大的分页功能</li>
<li>支持卡片视图</li>
<li>支持多语言</li>
<li>支持插件</li>
</ul>
</div>
</div>
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>基本</h5>
<div class="ibox-tools">
<a class="collapse-link">
<i class="fa fa-chevron-up"></i>
</a>
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
<i class="fa fa-wrench"></i>
</a>
<ul class="dropdown-menu dropdown-user">
<li><a href="#">选项1</a>
</li>
<li><a href="#">选项2</a>
</li>
</ul>
<a class="close-link">
<i class="fa fa-times"></i>
</a>
</div>
</div>
<div class="ibox-content">
<div class="row row-lg">
<div class="col-sm-6">
<h4 class="example-title">从URL加载</h4>
<div class="example">
<table data-toggle="table" data-url="js/demo/table_base.json" data-height="250" data-mobile-responsive="true">
<thead>
<tr>
<th data-field="Tid">ID</th>
<th data-field="First">姓名</th>
<th data-field="sex">性别</th>
<th data-field="Score">评分</th>
</tr>
</thead>
</table>
</div>
</div>
<div class="col-sm-6">
<h4 class="example-title">从数据中加载</h4>
<div class="example">
<table id="exampleTableFromData" data-mobile-responsive="true">
<thead>
<tr>
<th data-field="Tid">ID</th>
<th data-field="First">姓名</th>
<th data-field="sex">性别</th>
<th data-field="Score">评分</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- End Panel Basic -->
<!-- Panel Style -->
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>样式</h5>
<div class="ibox-tools">
<a class="collapse-link">
<i class="fa fa-chevron-up"></i>
</a>
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
<i class="fa fa-wrench"></i>
</a>
<ul class="dropdown-menu dropdown-user">
<li><a href="#">选项1</a>
</li>
<li><a href="#">选项2</a>
</li>
</ul>
<a class="close-link">
<i class="fa fa-times"></i>
</a>
</div>
</div>
<div class="ibox-content">
<div class="row row-lg">
<div class="col-sm-6">
<!-- Example Classes -->
<div class="example-wrap">
<h4 class="example-title">类名称</h4>
<div class="example">
<table data-toggle="table" data-classes="table table-hover table-condensed" data-url="js/demo/table_base.json" data-striped="true" data-height="250" data-mobile-responsive="true">
<thead>
<tr>
<th data-field="Tid">ID</th>
<th data-field="First">姓名</th>
<th data-field="sex">性别</th>
<th data-field="Score">评分</th>
</tr>
</thead>
</table>
</div>
</div>
<!-- End Example Classes -->
</div>
<div class="col-sm-6">
<!-- Example Align -->
<div class="example-wrap">
<h4 class="example-title">对齐</h4>
<div class="example">
<table data-toggle="table" data-url="js/demo/bootstrap_table_test2.json" data-mobile-responsive="true">
<thead>
<tr>
<th data-field="name" data-halign="right" data-align="center">名称</th>
<th data-field="star" data-halign="center" data-align="left">Star</th>
<th data-field="description" data-halign="left" data-align="right">描述</th>
</tr>
</thead>
</table>
</div>
</div>
<!-- End Example Align -->
</div>
<div class="clearfix hidden-xs"></div>
<div class="col-sm-6">
<!-- Example Rowstyle -->
<div class="example-wrap margin-sm-0">
<h4 class="example-title">行样式</h4>
<div class="example">
<table data-toggle="table" data-url="js/demo/table_base.json" data-mobile-responsive="true" data-row-style="rowStyle" data-height="250">
<thead>
<tr>
<th data-field="Tid">ID</th>
<th data-field="First">姓名</th>
<th data-field="sex">性别</th>
<th data-field="Score">评分</th>
</tr>
</thead>
</table>
</div>
</div>
<!-- End Example Rowstyle -->
</div>
<div class="col-sm-6">
<!-- Example Cellstyle -->
<div class="example-wrap">
<h4 class="example-title">列样式</h4>
<div class="example">
<table data-toggle="table" data-url="js/demo/bootstrap_table_test2.json" data-mobile-responsive="true">
<thead>
<tr>
<th data-field="name" data-cell-style="cellStyle">名称</th>
<th data-field="star">Star</th>
<th data-field="description">描述</th>
</tr>
</thead>
</table>
</div>
</div>
<!-- End Example Cellstyle -->
</div>
</div>
</div>
</div>
<!-- End Panel Style -->
<!-- Panel Sort & Hideheader -->
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>排序&amp;隐藏头部</h5>
<div class="ibox-tools">
<a class="collapse-link">
<i class="fa fa-chevron-up"></i>
</a>
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
<i class="fa fa-wrench"></i>
</a>
<ul class="dropdown-menu dropdown-user">
<li><a href="#">选项1</a>
</li>
<li><a href="#">选项2</a>
</li>
</ul>
<a class="close-link">
<i class="fa fa-times"></i>
</a>
</div>
</div>
<div class="ibox-content">
<div class="row row-lg">
<div class="col-sm-6">
<!-- Example Basic Sort -->
<div class="example-wrap">
<h4 class="example-title">基本排序</h4>
<div class="example">
<table data-toggle="table" data-url="js/demo/table_base.json" data-height="250" data-sort-name="First" data-sort-order="desc" data-mobile-responsive="true">
<thead>
<tr>
<th data-field="Tid" data-sortable="true">ID</th>
<th data-field="First" data-sortable="true">姓名</th>
<th data-field="sex" data-sortable="true">性别</th>
</tr>
</thead>
</table>
</div>
</div>
<!-- End Example Basic Sort -->
</div>
<div class="col-sm-6">
<!-- Example Format Sort -->
<div class="example-wrap margin-sm-0">
<h4 class="example-title">格式排序</h4>
<div class="example">
<table data-toggle="table" data-url="js/demo/bootstrap_table_test2.json" data-mobile-responsive="true">
<thead>
<tr>
<th data-field="name" data-formatter="nameFormatter">名称</th>
<th data-field="star" data-formatter="starsFormatter">Star</th>
<th data-field="license">许可</th>
<th data-field="url">地址</th>
</tr>
</thead>
</table>
</div>
</div>
<!-- End Example Format Sort -->
</div>
<div class="clearfix hidden-xs"></div>
<div class="col-sm-6">
<!-- Example Custom Sort -->
<div class="example-wrap">
<h4 class="example-title">自定义排序</h4>
<div class="example">
<table data-toggle="table" data-url="js/demo/table_base.json" data-height="250" data-sort-name="Score" data-sort-order="desc" data-mobile-responsive="true">
<thead>
<tr>
<th data-field="Tid" data-align="center" data-sortable="true">ID</th>
<th data-field="First" data-align="left" data-sortable="true">姓名</th>
<th data-field="Score" data-sortable="true" data-sorter="scoreSorter">评分</th>
</tr>
</thead>
</table>
</div>
</div>
<!-- End Example Custom Sort -->
</div>
<div class="col-sm-6">
<!-- Example Hide Header -->
<div class="example-wrap">
<h4 class="example-title">隐藏头部</h4>
<div class="example">
<table data-toggle="table" data-url="js/demo/table_base.json" data-height="250" data-show-header="false" data-mobile-responsive="true">
<thead>
<tr>
<th data-field="Tid">ID</th>
<th data-field="First">姓名</th>
<th data-field="sex">性别</th>
<th data-field="Score">评分</th>
</tr>
</thead>
</table>
</div>
</div>
<!-- End Example Hide Header -->
</div>
</div>
</div>
</div>
<!-- End Panel Sort & Hideheader -->
<!-- Panel Columns & Select -->
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>&amp;选择</h5>
<div class="ibox-tools">
<a class="collapse-link">
<i class="fa fa-chevron-up"></i>
</a>
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
<i class="fa fa-wrench"></i>
</a>
<ul class="dropdown-menu dropdown-user">
<li><a href="#">选项1</a>
</li>
<li><a href="#">选项2</a>
</li>
</ul>
<a class="close-link">
<i class="fa fa-times"></i>
</a>
</div>
</div>
<div class="ibox-content">
<div class="row row-lg">
<!-- Basic Columns -->
<div class="col-sm-6">
<!-- Example Basic Columns -->
<div class="example-wrap">
<h4 class="example-title">基本列</h4>
<div class="example">
<table id="exampleTableColumns" data-mobile-responsive="true">
<thead>
<tr>
<th data-field="state" data-radio="true"></th>
<th data-field="name" data-switchable="false">名称</th>
<th data-field="price">价格</th>
<th data-field="column1">列1</th>
<th data-field="column2" data-visible="false">列2</th>
<th data-field="column3" data-switchable="false">列3</th>
<th data-field="column4" data-visible="false">列4</th>
</tr>
</thead>
</table>
</div>
</div>
<!-- End Example Basic Columns -->
</div>
<div class="col-sm-6">
<!-- Example Large Columns -->
<div class="example-wrap">
<h4 class="example-title">数据较多的列</h4>
<div class="example">
<table id="exampleTableLargeColumns" data-show-columns="true" data-height="400" data-mobile-responsive="true"></table>
</div>
</div>
<!-- End Example Large Columns -->
</div>
<div class="clearfix hidden-xs"></div>
<div class="col-sm-6">
<!-- Example Radio Select -->
<div class="example-wrap margin-sm-0">
<h4 class="example-title">单选框</h4>
<div class="example">
<table data-toggle="table" data-url="js/demo/bootstrap_table_test.json" data-height="299" data-click-to-select="true" data-select-item-name="myRadioName" data-mobile-responsive="true">
<thead>
<tr>
<th data-field="state" data-radio="true"></th>
<th data-field="name">名称</th>
<th data-field="price">价格</th>
<th data-field="column1">列1</th>
</tr>
</thead>
</table>
</div>
</div>
<!-- End Example Radio Select -->
</div>
<div class="col-sm-6">
<!-- Example Checkbox Select -->
<div class="example-wrap">
<h4 class="example-title">复选框</h4>
<div class="example">
<table data-toggle="table" data-url="js/demo/bootstrap_table_test.json" data-height="299" data-click-to-select="true" data-mobile-responsive="true">
<thead>
<tr>
<th data-field="state" data-checkbox="true"></th>
<th data-field="name">名称</th>
<th data-field="price">价格</th>
<th data-field="column1">列1</th>
</tr>
</thead>
</table>
</div>
</div>
<!-- End Example Checkbox Select -->
</div>
</div>
</div>
</div>
<!-- End Panel Columns & Select -->
<!-- Panel Other -->
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>其他</h5>
<div class="ibox-tools">
<a class="collapse-link">
<i class="fa fa-chevron-up"></i>
</a>
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
<i class="fa fa-wrench"></i>
</a>
<ul class="dropdown-menu dropdown-user">
<li><a href="#">选项1</a>
</li>
<li><a href="#">选项2</a>
</li>
</ul>
<a class="close-link">
<i class="fa fa-times"></i>
</a>
</div>
</div>
<div class="ibox-content">
<div class="row row-lg">
<div class="col-sm-12">
<!-- Example Card View -->
<div class="example-wrap">
<h4 class="example-title">卡片视图</h4>
<div class="example">
<table data-toggle="table" data-url="js/demo/bootstrap_table_test2.json" data-card-view="true" data-mobile-responsive="true">
<thead>
<tr>
<th data-field="name">名称</th>
<th data-field="star">Star</th>
<th data-field="license">许可</th>
<th data-field="description">描述</th>
<th data-field="url">地址</th>
</tr>
</thead>
</table>
</div>
</div>
<!-- End Example Card View -->
</div>
<div class="col-sm-12">
<!-- Example Toolbar -->
<div class="example-wrap">
<h4 class="example-title">工具条</h4>
<div class="example">
<div class="btn-group hidden-xs" id="exampleToolbar" role="group">
<button type="button" class="btn btn-outline btn-default">
<i class="glyphicon glyphicon-plus" aria-hidden="true"></i>
</button>
<button type="button" class="btn btn-outline btn-default">
<i class="glyphicon glyphicon-heart" aria-hidden="true"></i>
</button>
<button type="button" class="btn btn-outline btn-default">
<i class="glyphicon glyphicon-trash" aria-hidden="true"></i>
</button>
</div>
<table id="exampleTableToolbar" data-mobile-responsive="true">
<thead>
<tr>
<th data-field="name">名称</th>
<th data-field="star">Star</th>
<th data-field="license">许可</th>
<th data-field="description">描述</th>
<th data-field="url">地址</th>
</tr>
</thead>
</table>
</div>
</div>
<!-- End Example Toolbar -->
</div>
<div class="col-sm-12">
<!-- Example Pagination -->
<div class="example-wrap">
<h4 class="example-title">分页:客户端</h4>
<div class="example">
<table id="exampleTablePagination" data-toggle="table" data-url="js/demo/bootstrap_table_test.json" data-query-params="queryParams" data-mobile-responsive="true" data-height="400" data-pagination="true" data-icon-size="outline" data-search="true">
<thead>
<tr>
<th data-field="state" data-checkbox="true"></th>
<th data-field="id">ID</th>
<th data-field="name">名称</th>
<th data-field="price">价格</th>
</tr>
</thead>
</table>
</div>
</div>
<!-- End Example Pagination -->
</div>
<div class="col-sm-12">
<!-- Example Events -->
<div class="example-wrap">
<h4 class="example-title">事件</h4>
<div class="example">
<div class="alert alert-success" id="examplebtTableEventsResult" role="alert">
事件结果
</div>
<div class="btn-group hidden-xs" id="exampleTableEventsToolbar" role="group">
<button type="button" class="btn btn-outline btn-default">
<i class="glyphicon glyphicon-plus" aria-hidden="true"></i>
</button>
<button type="button" class="btn btn-outline btn-default">
<i class="glyphicon glyphicon-heart" aria-hidden="true"></i>
</button>
<button type="button" class="btn btn-outline btn-default">
<i class="glyphicon glyphicon-trash" aria-hidden="true"></i>
</button>
</div>
<table id="exampleTableEvents" data-height="400" data-mobile-responsive="true">
<thead>
<tr>
<th data-field="state" data-checkbox="true"></th>
<th data-field="id">ID</th>
<th data-field="name">名称</th>
<th data-field="price">价格</th>
</tr>
</thead>
</table>
</div>
</div>
<!-- End Example Events -->
</div>
</div>
</div>
</div>
<!-- End Panel Other -->
</div>
<!-- 全局js -->
<script src="js/jquery.min.js?v=2.1.4"></script>
<script src="js/bootstrap.min.js?v=3.3.7"></script>
<!-- 自定义js -->
<script src="js/content.js?v=1.0.0"></script>
<!-- Bootstrap table -->
<script src="js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
<script src="js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<!-- Peity -->
<script src="js/demo/bootstrap-table-demo.js"></script>
<script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
<!--统计代码,可删除-->
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML/CSS
1
https://gitee.com/dispatch_async/hplus.git
git@gitee.com:dispatch_async/hplus.git
dispatch_async
hplus
hplus
master

搜索帮助