在Bootstrap中如何实现表格合并单元格

时间:2023.07.26 发布人:****koa

在Bootstrap中如何实现表格合并单元格

已解决问题

谷歌****koa用户在2023.07.26提交了关于“指南者在Bootstrap中如何实现表格合并单元格”的提问,欢迎大家涌跃发表自己的观点。目前共有1个回答,最后更新于2024-08-30T02:35:32。希望大家能够帮助她。

详细问题描述及疑问:期待您的答案,你是我的宝贝,你是我的花,谢谢你对我的帮助!

希望以下的回答,能够帮助你。

第1个回答

用户名:Diaymo  


这篇文章主要介绍了Bootstrap实现的表格合并单元格,涉及bootstrap界面布局相来自关操作技巧,需要的朋友可以参考下
本文实例讲述了Boot映strap实现的表格合并单元格。分享给大家供大家参考,具体如下:
1、问题背项益弦伟怀许编景
利用Bootstrap设计表格,并且表格需要合并单元格
2、实现源码
<!DOCTYPEhtml>
<html>
<head>
<m问答etacharset="u复任曾张席混tf-8">
<me再初白介的批按限先举编tahttp-equiv="X-UA-Compa比先快tible"content="IE=edge">
<meta点心送训备使失若name="viewport"content="width=device-width,initial-scale=1">
<metaname="description"content="">
<metaname祖破整轻胡="author"content="">
<title>Bootstrap-表格合并单元格</title>
<linkrel="stylesheet"href="https://cdn.***.com/bootstrap/3.3.5/css/bootstrap.css"rel="externalnofollow"/>
<scriptsrc="http://libs.bai**.com/jquery/2.0.0/jquery.min.js"></script>
<scripttype="text/j**ascript"src="https://cdn.***.com/bootstrap/3.3.5/防合医航越js/bootstrap.js"></script>
<style>
body,html{
wi乎体dth:99%;
heig林级充ht:98%;
font-family:"微软雅黑";
font-size:14px;
}
table{
width:100%;
}
</style>
<script>
</script>
</head>
<body>
<pclass="row">
<pclass="col-xs-12">
<tableclass="tabletable-striped">
<tr>
<td>
<l安abelfor="stuNo">学号:</label>
<inputtype="text"id="stuNo"/>
<pclass="btn-group"style="width:157px;height:26px;">
<buttontype="button"class="btnbtn武抓娘凯阿答满际-defaultdropdow叶n-toggle"data-togg尼le="dropdown"style="width:157px;height:26px;">
班级
</button>
<ulclass="dropdown-me**"role=送理场物林成工"me**">
<l跳i><ahref=脸流盟某云很汉少顾"#"rel="externalnofollow"rel="externalnofollow"rel="externalnofollow"rel="externalnofollow"rel="externalnofollow">一班</a></li>
<li><ahref="#"rel="externalnofollow"rel="externalnofollow"rel="externalnofollow"rel="externalnofollow"rel="externalnofollow">二班</a></li>
<li><ahref="#"rel="externalnofollow"rel="externalnofollow"rel="externalnofollow"rel="externalnofollow"rel="externalnofollow">三班</a></li>
<li><ahref="#"rel="externalnofollow"rel="externalnofollow"rel="externalnofollow"rel="externalnofollow"rel="externalnofollow">四班</a></li>
<li><ahref="#"rel="externalnofollow"rel="externalnofollow"rel="externalnofollow"rel="externalnofollow"rel="externalnofollow">五班</a></li>
</ul>
</p>
<buttontype="button"class="btnbtn-primary">查询</button>
<buttontype="button"class="btn">重置</button>
</td>
</tr>
</table>
</p>
<pclass="col-xs-12">
<pclass="col-xs-2">
<tableclass="tabletable-stripedtable-bordered">
<caption>学生表</caption>
<thead>
<tr>
<th>学生</th>
<th>学号</th>
</tr>
</thead>
<tbody>
<tr>
<td>胡思</td>
<td>2016010101</td>
</tr>
<tr>
<td>赵四</td>
<td>2016010102</td>
</tr>
<tr>
<td>陈诚</td>
<td>2016010103</td>
</tr>
<tr>
<td>李磊</td>
<td>2016010104</td>
</tr>
<tr>
<td>孙杨</td>
<td>2016010105</td>
</tr>
<tr>
<td>李爽</td>
<td>2016010106</td>
</tr>
</tbody>
</table>
<tableclass="tabletable-stripedtable-bordered">
<caption>学生表</caption>
<thead>
<tr>
<th>学生</th>
<th>学号</th>
</tr>
</thead>
<tbody>
<tr>
<td>胡思</td>
<td>2016010101</td>
</tr>
<tr>
<td>赵四</td>
<td>2016010102</td>
</tr>
<tr>
<td>陈诚</td>
<td>2016010103</td>
</tr>
<tr>
<td>李磊</td>
<td>2016010104</td>
</tr>
<tr>
<td>游豪</td>
<td>2016010105</td>
</tr>
</tbody>
</table>
</p>
<pclass="col-xs-10">
<tableclass="tabletable-striped">
<trstyle="text-align:center;">
<td>到校</td>
<td>回家</td>
<td>距离</td>
</tr>
<trstyle="text-align:center;">
<tdcolspan="2"style="text-align:center;">222</td>
<tdrowspan="2"style="width:200px;">
<pclass="col-xs-12">
<tableclass="tabletable-stripedtable-bordered">
<thead>
<tr>
<th>姓名</th>
<th>学号</th>
</tr>
</thead>
<tbody>
<tr>
<td>胡思</td>
<td>2016010101</td>
</tr>
</tbody>
</table>
</p>
</td>
</tr>
<tr>
<tdcolspan="2"style="text-align:center;">333</td>
</tr>
</table>
<tableclass="tabletable-striped">
<trstyle="text-align:center;">
<td>到校</td>
<td>回家</td>
<td>距离</td>
</tr>
<trstyle="text-align:center;">
<tdcolspan="2"style="text-align:center;">222</td>
<tdrowspan="2"style="width:200px;">
<pclass="col-xs-12">
<tableclass="tabletable-stripedtable-bordered">
<thead>
<tr>
<th>姓名</th>
<th>学号</th>
</tr>
</thead>
<tbody>
<tr>
<td>胡思</td>
<td>2016010101</td>
</tr>
</tbody>
</table>
</p>
</td>
</tr>
<tr>
<tdcolspan="2"style="text-align:center;">333</td>
</tr>
</table>
<tableclass="tabletable-striped">
<trstyle="text-align:center;">
<td>到校</td>
<td>回家</td>
<td>距离</td>
</tr>
<trstyle="text-align:center;">
<tdcolspan="2"style="text-align:center;">222</td>
<tdrowspan="2"style="width:200px;">
<pclass="col-xs-12">
<tableclass="tabletable-stripedtable-bordered">
<thead>
<tr>
<th>姓名</th>
<th>学号</th>
</tr>
</thead>
<tbody>
<tr>
<td>胡思</td>
<td>2016010101</td>
</tr>
</tbody>
</table>
</p>
</td>
</tr>
<tr>
<tdcolspan="2"style="text-align:center;">333</td>
</tr>
</table>
<tableclass="tabletable-striped">
<trstyle="text-align:center;">
<td>到校</td>
<td>回家</td>
<td>距离</td>
</tr>
<trstyle="text-align:center;">
<tdcolspan="2"style="text-align:center;">222</td>
<tdrowspan="2"style="width:200px;">
<pclass="col-xs-12">
<tableclass="tabletable-stripedtable-bordered">
<thead>
<tr>
<th>姓名</th>
<th>学号</th>
</tr>
</thead>
<tbody>
<tr>
<td>胡思</td>
<td>2016010101</td>
</tr>
</tbody>
</table>
</p>
</td>
</tr>
<tr>
<tdcolspan="2"style="text-align:center;">333</td>
</tr>
</table>
</p>
</p>
</p>
</body>
</html>3、实现结果
上面是我整理给大家的,希望今后会对大家有帮助。
相关文章:
在Angular中使用Lodash方法具体该怎么做?
vue-router项目实战(详细教程)
详细解答JS操作剪贴板