加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
lyear_ui_tables.html 24.99 KB
一键复制 编辑 原始数据 按行查看 历史
笔下光年 提交于 2020-05-13 20:44 . 新增演示文件
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<title>表格 - 光年(Light Year Admin V4)后台管理系统模板</title>
<link rel="icon" href="favicon.ico" type="image/ico">
<meta name="keywords" content="LightYear,LightYearAdmin,光年,后台模板,后台管理系统,光年HTML模板">
<meta name="description" content="Light Year Admin V4是一个后台管理系统的HTML模板,基于Bootstrap v4.4.1。">
<meta name="author" content="yinqi">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/materialdesignicons.min.css" rel="stylesheet">
<link href="css/style.min.css" rel="stylesheet">
</head>
<body>
<div class="container-fluid p-t-15">
<div class="row">
<div class="col-lg-12">
<div class="card">
<header class="card-header"><div class="card-title">表格</div></header>
<div class="card-body">
<h6>基本实例</h6>
<table class="table">
<thead>
<tr>
<th>#</th>
<th>书籍名称</th>
<th>作者</th>
<th>分类</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>庄子</td>
<td>庄子</td>
<td>古文典籍</td>
</tr>
<tr>
<th scope="row">2</th>
<td>道德经</td>
<td>老子</td>
<td>古文典籍</td>
</tr>
<tr>
<th scope="row">3</th>
<td>能面杀人事件</td>
<td>高木彬光</td>
<td>悬疑小说</td>
</tr>
</tbody>
</table>
<p>你可使用 <code>.table-darkclass</code> 选择器来产生颜色反转对比效果,即深色背景和浅色文本。</p>
<table class="table table-dark">
<thead>
<tr>
<th>#</th>
<th>书籍名称</th>
<th>作者</th>
<th>分类</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>庄子</td>
<td>庄子</td>
<td>古文典籍</td>
</tr>
<tr>
<th scope="row">2</th>
<td>道德经</td>
<td>老子</td>
<td>古文典籍</td>
</tr>
<tr>
<th scope="row">3</th>
<td>能面杀人事件</td>
<td>高木彬光</td>
<td>悬疑小说</td>
</tr>
</tbody>
</table>
<h6>Head表头处理</h6>
<table class="table">
<thead class="thead-dark">
<tr>
<th>#</th>
<th>书籍名称</th>
<th>作者</th>
<th>分类</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>庄子</td>
<td>庄子</td>
<td>古文典籍</td>
</tr>
<tr>
<th scope="row">2</th>
<td>道德经</td>
<td>老子</td>
<td>古文典籍</td>
</tr>
<tr>
<th scope="row">3</th>
<td>能面杀人事件</td>
<td>高木彬光</td>
<td>悬疑小说</td>
</tr>
</tbody>
</table>
<table class="table">
<thead class="thead-light">
<tr>
<th>#</th>
<th>书籍名称</th>
<th>作者</th>
<th>分类</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>庄子</td>
<td>庄子</td>
<td>古文典籍</td>
</tr>
<tr>
<th scope="row">2</th>
<td>道德经</td>
<td>老子</td>
<td>古文典籍</td>
</tr>
<tr>
<th scope="row">3</th>
<td>能面杀人事件</td>
<td>高木彬光</td>
<td>悬疑小说</td>
</tr>
</tbody>
</table>
<h6>条纹状表格 <code>.table-striped</code></h6>
<table class="table table-striped">
<thead>
<tr>
<th>#</th>
<th>书籍名称</th>
<th>作者</th>
<th>分类</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>庄子</td>
<td>庄子</td>
<td>古文典籍</td>
</tr>
<tr>
<th scope="row">2</th>
<td>道德经</td>
<td>老子</td>
<td>古文典籍</td>
</tr>
<tr>
<th scope="row">3</th>
<td>能面杀人事件</td>
<td>高木彬光</td>
<td>悬疑小说</td>
</tr>
</tbody>
</table>
<table class="table table-striped table-dark">
<thead>
<tr>
<th>#</th>
<th>书籍名称</th>
<th>作者</th>
<th>分类</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>庄子</td>
<td>庄子</td>
<td>古文典籍</td>
</tr>
<tr>
<th scope="row">2</th>
<td>道德经</td>
<td>老子</td>
<td>古文典籍</td>
</tr>
<tr>
<th scope="row">3</th>
<td>能面杀人事件</td>
<td>高木彬光</td>
<td>悬疑小说</td>
</tr>
</tbody>
</table>
<h6>带边框的表格 <code>.table-bordered</code></h6>
<table class="table table-bordered">
<thead>
<tr>
<th>#</th>
<th>书籍名称</th>
<th>作者</th>
<th>分类</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>理智与情感</td>
<td>简·奥斯汀</td>
<td>国外名著</td>
</tr>
<tr>
<th scope="row">2</th>
<td>浪子神鹰</td>
<td>陈青云</td>
<td>武侠小说</td>
</tr>
<tr>
<th scope="row">3</th>
<td>风中之路</td>
<td>川端康成</td>
<td>当代小说</td>
</tr>
</tbody>
</table>
<table class="table table-bordered table-dark">
<thead>
<tr>
<th>#</th>
<th>书籍名称</th>
<th>作者</th>
<th>分类</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>理智与情感</td>
<td>简·奥斯汀</td>
<td>国外名著</td>
</tr>
<tr>
<th scope="row">2</th>
<td>浪子神鹰</td>
<td>陈青云</td>
<td>武侠小说</td>
</tr>
<tr>
<th scope="row">3</th>
<td>风中之路</td>
<td>川端康成</td>
<td>当代小说</td>
</tr>
</tbody>
</table>
<h6>无边框 <code>.table-borderless</code></h6>
<table class="table table-borderless">
<thead>
<tr>
<th>#</th>
<th>书籍名称</th>
<th>作者</th>
<th>分类</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>理智与情感</td>
<td>简·奥斯汀</td>
<td>国外名著</td>
</tr>
<tr>
<th scope="row">2</th>
<td>浪子神鹰</td>
<td>陈青云</td>
<td>武侠小说</td>
</tr>
<tr>
<th scope="row">3</th>
<td>风中之路</td>
<td>川端康成</td>
<td>当代小说</td>
</tr>
</tbody>
</table>
<h6>鼠标悬停 <code>.table-hover</code></h6>
<table class="table table-hover">
<thead>
<tr>
<th>#</th>
<th>书籍名称</th>
<th>作者</th>
<th>分类</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>理智与情感</td>
<td>简·奥斯汀</td>
<td>国外名著</td>
</tr>
<tr>
<th scope="row">2</th>
<td>浪子神鹰</td>
<td>陈青云</td>
<td>武侠小说</td>
</tr>
<tr>
<th scope="row">3</th>
<td>风中之路</td>
<td>川端康成</td>
<td>当代小说</td>
</tr>
</tbody>
</table>
<table class="table table-hover table-dark">
<thead>
<tr>
<th>#</th>
<th>书籍名称</th>
<th>作者</th>
<th>分类</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>理智与情感</td>
<td>简·奥斯汀</td>
<td>国外名著</td>
</tr>
<tr>
<th scope="row">2</th>
<td>浪子神鹰</td>
<td>陈青云</td>
<td>武侠小说</td>
</tr>
<tr>
<th scope="row">3</th>
<td>风中之路</td>
<td>川端康成</td>
<td>当代小说</td>
</tr>
</tbody>
</table>
<h6>紧缩表格 <code>.table-sm</code></h6>
<table class="table table-sm">
<thead>
<tr>
<th>#</th>
<th>书籍名称</th>
<th>作者</th>
<th>分类</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>简单爱</td>
<td>董晓磊</td>
<td>青春校园</td>
</tr>
<tr>
<th scope="row">2</th>
<td>主教杀人事件</td>
<td>范·达恩</td>
<td>悬疑小说</td>
</tr>
<tr>
<th scope="row">3</th>
<td>天神下凡</td>
<td>烽火戏诸侯</td>
<td>玄幻仙侠</td>
</tr>
</tbody>
</table>
<table class="table table-sm table-dark">
<thead>
<tr>
<th>#</th>
<th>书籍名称</th>
<th>作者</th>
<th>分类</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>简单爱</td>
<td>董晓磊</td>
<td>青春校园</td>
</tr>
<tr>
<th scope="row">2</th>
<td>主教杀人事件</td>
<td>范·达恩</td>
<td>悬疑小说</td>
</tr>
<tr>
<th scope="row">3</th>
<td>天神下凡</td>
<td>烽火戏诸侯</td>
<td>玄幻仙侠</td>
</tr>
</tbody>
</table>
<h6>状态类</h6>
<table class="table">
<thead>
<tr>
<th>书籍名称</th>
<th>作者</th>
<th>分类</th>
</tr>
</thead>
<tbody>
<tr class="table-active">
<td>北京悠悠馆</td>
<td>陈舜臣</td>
<td>历史小说</td>
</tr>
<tr>
<td>甲午战争</td>
<td>陈舜臣</td>
<td>历史小说</td>
</tr>
<tr class="table-primary">
<td>神兽之爪</td>
<td>陈舜臣</td>
<td>历史小说</td>
</tr>
<tr class="table-secondary">
<td>帝国的软肋:大汉王朝四百年</td>
<td>陈舜臣</td>
<td>历史小说</td>
</tr>
<tr class="table-success">
<td>春秋战国:戈马钟鼓杀与盟</td>
<td>陈舜臣</td>
<td>历史小说</td>
</tr>
<tr class="table-danger">
<td>龙凤之国</td>
<td>陈舜臣</td>
<td>历史小说</td>
</tr>
<tr class="table-warning">
<td>大唐帝国之隋乱唐盛三百年</td>
<td>陈舜臣</td>
<td>历史小说</td>
</tr>
<tr class="table-info">
<td>一个陌生女人的来信</td>
<td>斯蒂芬·茨威格</td>
<td>国外名著</td>
</tr>
<tr class="table-light">
<td>七十二朝人物演义</td>
<td>佚名</td>
<td>白话小说</td>
</tr>
<tr class="table-dark">
<td>永乐大典残卷</td>
<td>解缙</td>
<td>古文典籍</td>
</tr>
</tbody>
</table>
<table class="table table-dark">
<thead>
<tr>
<th>书籍名称</th>
<th>作者</th>
<th>分类</th>
</tr>
</thead>
<tbody>
<tr class="bg-primary">
<td>北京悠悠馆</td>
<td>陈舜臣</td>
<td>历史小说</td>
</tr>
<tr>
<td>甲午战争</td>
<td>陈舜臣</td>
<td>历史小说</td>
</tr>
<tr class="bg-success">
<td>神兽之爪</td>
<td>陈舜臣</td>
<td>历史小说</td>
</tr>
<tr>
<td>帝国的软肋:大汉王朝四百年</td>
<td>陈舜臣</td>
<td>历史小说</td>
</tr>
<tr class="bg-info">
<td>春秋战国:戈马钟鼓杀与盟</td>
<td>陈舜臣</td>
<td>历史小说</td>
</tr>
<tr>
<td>龙凤之国</td>
<td>陈舜臣</td>
<td>历史小说</td>
</tr>
<tr class="bg-warning">
<td>大唐帝国之隋乱唐盛三百年</td>
<td>陈舜臣</td>
<td>历史小说</td>
</tr>
<tr>
<td>一个陌生女人的来信</td>
<td>斯蒂芬·茨威格</td>
<td>国外名著</td>
</tr>
<tr class="bg-danger">
<td>七十二朝人物演义</td>
<td>佚名</td>
<td>白话小说</td>
</tr>
</tbody>
</table>
<h6>Captions表格辅助标题</h6>
<table class="table">
<caption>
书籍列表
</caption>
<thead>
<tr>
<th>#</th>
<th>书籍名称</th>
<th>作者</th>
<th>分类</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>简单爱</td>
<td>董晓磊</td>
<td>青春校园</td>
</tr>
<tr>
<th scope="row">2</th>
<td>主教杀人事件</td>
<td>范·达恩</td>
<td>悬疑小说</td>
</tr>
<tr>
<th scope="row">3</th>
<td>天神下凡</td>
<td>烽火戏诸侯</td>
<td>玄幻仙侠</td>
</tr>
</tbody>
</table>
<h6>响应式表格 <code>.table-responsive</code></h6>
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>#</th>
<th>书籍名</th>
<th>作者</th>
<th>国籍</th>
<th>分类</th>
<th>库存</th>
<th>价格</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>钦差大臣</td>
<td>果戈理</td>
<td>俄国</td>
<td>国外名族</td>
<td>125</td>
<td>36.00</td>
</tr>
<tr>
<th scope="row">2</th>
<td>西厢记</td>
<td>王实甫</td>
<td>中国</td>
<td>古文典籍</td>
<td>26</td>
<td>18.00</td>
</tr>
<tr>
<th scope="row">3</th>
<td>儒林外史</td>
<td>吴敬梓</td>
<td>中国</td>
<td>古文典籍</td>
<td>39</td>
<td>22.00</td>
</tr>
</tbody>
</table>
</div>
<h6>多屏幕断点设定 <code>.table-responsive{-sm|-md|-lg|-xl}</code></h6>
<p><code>.table-responsive-sm</code></p>
<div class="table-responsive-sm">
<table class="table">
<thead>
<tr>
<th>#</th>
<th>书籍名</th>
<th>作者</th>
<th>国籍</th>
<th>分类</th>
<th>库存</th>
<th>价格</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>钦差大臣</td>
<td>果戈理</td>
<td>俄国</td>
<td>国外名族</td>
<td>125</td>
<td>36.00</td>
</tr>
<tr>
<th scope="row">2</th>
<td>西厢记</td>
<td>王实甫</td>
<td>中国</td>
<td>古文典籍</td>
<td>26</td>
<td>18.00</td>
</tr>
<tr>
<th scope="row">3</th>
<td>儒林外史</td>
<td>吴敬梓</td>
<td>中国</td>
<td>古文典籍</td>
<td>39</td>
<td>22.00</td>
</tr>
</tbody>
</table>
</div>
<p><code>.table-responsive-md</code></p>
<div class="table-responsive-md">
<table class="table">
<thead>
<tr>
<th>#</th>
<th>书籍名</th>
<th>作者</th>
<th>国籍</th>
<th>分类</th>
<th>库存</th>
<th>价格</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>钦差大臣</td>
<td>果戈理</td>
<td>俄国</td>
<td>国外名族</td>
<td>125</td>
<td>36.00</td>
</tr>
<tr>
<th scope="row">2</th>
<td>西厢记</td>
<td>王实甫</td>
<td>中国</td>
<td>古文典籍</td>
<td>26</td>
<td>18.00</td>
</tr>
<tr>
<th scope="row">3</th>
<td>儒林外史</td>
<td>吴敬梓</td>
<td>中国</td>
<td>古文典籍</td>
<td>39</td>
<td>22.00</td>
</tr>
</tbody>
</table>
</div>
<p><code>.table-responsive-lg</code></p>
<div class="table-responsive-lg">
<table class="table">
<thead>
<tr>
<th>#</th>
<th>书籍名</th>
<th>作者</th>
<th>国籍</th>
<th>分类</th>
<th>库存</th>
<th>价格</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>钦差大臣</td>
<td>果戈理</td>
<td>俄国</td>
<td>国外名族</td>
<td>125</td>
<td>36.00</td>
</tr>
<tr>
<th scope="row">2</th>
<td>西厢记</td>
<td>王实甫</td>
<td>中国</td>
<td>古文典籍</td>
<td>26</td>
<td>18.00</td>
</tr>
<tr>
<th scope="row">3</th>
<td>儒林外史</td>
<td>吴敬梓</td>
<td>中国</td>
<td>古文典籍</td>
<td>39</td>
<td>22.00</td>
</tr>
</tbody>
</table>
</div>
<p><code>.table-responsive-xl</code></p>
<div class="table-responsive-xl">
<table class="table">
<thead>
<tr>
<th>#</th>
<th>书籍名</th>
<th>作者</th>
<th>国籍</th>
<th>分类</th>
<th>库存</th>
<th>价格</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>钦差大臣</td>
<td>果戈理</td>
<td>俄国</td>
<td>国外名族</td>
<td>125</td>
<td>36.00</td>
</tr>
<tr>
<th scope="row">2</th>
<td>西厢记</td>
<td>王实甫</td>
<td>中国</td>
<td>古文典籍</td>
<td>26</td>
<td>18.00</td>
</tr>
<tr>
<th scope="row">3</th>
<td>儒林外史</td>
<td>吴敬梓</td>
<td>中国</td>
<td>古文典籍</td>
<td>39</td>
<td>22.00</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/popper.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/main.min.js"></script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化