tbody 滚动条
| FLIGHT CODE | FROM | STA | ETA | Notes |
|---|---|---|---|---|
| T3 4264 | ISLE OF MAN | 11:40 | 11:42 | LANDED AT 11:43 |
| BA 4081 | PARIS-CDG | 11:45 | 11:57 | LANDED AT 11:58 |
| BE 843 | BELFAST CITY | 11:45 | 11:40 | LANDED AT 11:41 |
| GR 642 | GUERNSEY | 11:55 | 11:38 | LANDED AT 11:37 |
| EZY 6192 | PISA | 12:05 | 12:18 | LANDED AT 12:17 |
| EZY 6052 | MALAGA | 12:15 | 11:55 | LANDED AT 11:55 |
| EZY 6074 | ALICANTE | 12:35 | 12:12 | LANDED AT 12:14 |
| EZY 6068 | VALENCIA | 12:40 | 12:49 | LANDED AT 12:48 |
| BA 4023 | GLASGOW | 12:50 | 12:41 | LANDED AT 14:08 |
| FR 506 | DUBLIN | 13:00 | 12:52 | LANDED AT 12:51 |
| T3 4264 | ISLE OF MAN | 11:40 | 11:42 | LANDED AT 11:43 |
| BA 4081 | PARIS-CDG | 11:45 | 11:57 | LANDED AT 11:58 |
| BE 843 | BELFAST CITY | 11:45 | 11:40 | LANDED AT 11:41 |
| GR 642 | GUERNSEY | 11:55 | 11:38 | LANDED AT 11:37 |
| EZY 6192 | PISA | 12:05 | 12:18 | LANDED AT 12:17 |
| EZY 6052 | MALAGA | 12:15 | 11:55 | LANDED AT 11:55 |
| EZY 6074 | ALICANTE | 12:35 | 12:12 | LANDED AT 12:14 |
| EZY 6068 | VALENCIA | 12:40 | 12:49 | LANDED AT 12:48 |
| BA 4023 | GLASGOW | 12:50 | 12:41 | LANDED AT 14:08 |
| FR 506 | DUBLIN | 13:00 | 12:52 | LANDED AT 12:51 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>
.table-mod {
position: relative;
padding: 52px 0 2px;
width: 640px;
background: #eee;
overflow: hidden;
word-break: break-all;
font-family: microsoft yahei;
font-size: 12px
}
.table-hd {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 30px;
line-height: 30px;
text-align: center;
font-weight: bold;
color: #000
}
.table-bd {
overflow: auto;
height: 300px;
}
.table-mod table {
border-spacing: 2px;
vertical-align: middle;
table-layout: inherit
}
.table-mod .thead {
position: absolute;
top: 28px;
left: 0;
padding-right: 27px;
}
.table-mod .tbody {
position: absolute;
top: 52px;
left: 0;
padding-right: 10px;
overflow-y: auto;
height: 300px;
*height: auto;
}
.table-mod tfoot td {
position: absolute;
bottom: 0;
left: 0;
height: 20px;
line-height: 20px;
width: 640px;
text-align: center;
background: #f0c992;
color: #000
}
.table-mod th,
.table-mod td {
width: 120px;
height: 20px;
text-align: left;
}
.table-mod th {
background: #724a10;
color: #fff;
}
.table-mod .bgc-white {
background-color: #fff;
}
.table-mod .td2 {
width: 180px;
}
</style>
</head>
<body>
<div class="table-mod">
<div class="table-hd">ARRIVALS TO BRISTOL - ENGLAND</div>
<div class="table-bd">
<table>
<thead class="thead">
<tr>
<th>FLIGHT CODE</th>
<th class="th td2">FROM</td>
<th>STA</td>
<th>ETA</td>
<th class="nd">Notes</td>
</tr>
</tdead>
<tbody class="tbody">
<tr>
<th>T3 4264</td>
<td class="td2">ISLE OF MAN</th>
<td>11:40</td>
<td>11:42</td>
<td>LANDED AT 11:43</td>
</tr>
<tr class="bgc-white">
<th>BA 4081</th>
<td class="td2">PARIS-CDG</td>
<td>11:45</td>
<td>11:57</td>
<td>LANDED AT 11:58</td>
</tr>
<tr>
<th>BE 843</th>
<td class="td2">BELFAST CITY</td>
<td>11:45</td>
<td>11:40</td>
<td>LANDED AT 11:41</td>
</tr>
<tr class="bgc-white">
<th>GR 642</th>
<td class="td2">GUERNSEY</td>
<td>11:55</td>
<td>11:38</td>
<td>LANDED AT 11:37</td>
</tr>
<tr>
<th>EZY 6192</th>
<td>PISA</td>
<td>12:05</td>
<td>12:18</td>
<td>LANDED AT 12:17</td>
</tr>
<tr class="bgc-white">
<th>EZY 6052</th>
<td class="td2">MALAGA</td>
<td>12:15</td>
<td>11:55</td>
<td>LANDED AT 11:55</td>
</tr>
<tr>
<th>EZY 6074</th>
<td class="td2">ALICANTE</td>
<td>12:35</td>
<td>12:12</td>
<td>LANDED AT 12:14</td>
</tr>
<tr class="bgc-white">
<th>EZY 6068</th>
<td class="td2">VALENCIA</td>
<td>12:40</td>
<td>12:49</td>
<td>LANDED AT 12:48</td>
</tr>
<tr>
<th>BA 4023</th>
<td class="td2">GLASGOW</td>
<td>12:50</td>
<td>12:41</td>
<td>LANDED AT 14:08</td>
</tr>
<tr class="bgc-white">
<th>FR 506</th>
<td class="td2">DUBLIN</td>
<td>13:00</td>
<td>12:52</td>
<td>LANDED AT 12:51</td>
</tr>
<tr>
<th>T3 4264</th>
<td class="td2">ISLE OF MAN</td>
<td>11:40</td>
<td>11:42</td>
<td>LANDED AT 11:43</td>
</tr>
<tr class="bgc-white">
<th>BA 4081</th>
<td class="td2">PARIS-CDG</td>
<td>11:45</td>
<td>11:57</td>
<td>LANDED AT 11:58</td>
</tr>
<tr>
<th>BE 843</th>
<td class="td2">BELFAST CITY</td>
<td>11:45</td>
<td>11:40</td>
<td>LANDED AT 11:41</td>
</tr>
<tr class="bgc-white">
<th>GR 642</th>
<td class="td2">GUERNSEY</td>
<td>11:55</td>
<td>11:38</td>
<td>LANDED AT 11:37</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>
tbody 滚动条的更多相关文章
- table下tbody滚动条与thead对齐的方法且每一列可以不均等
1 前言 table下tbody滚动条与thead对齐的方法,开始在tbody的td和thead的tr>td,对每一个Item加入百分比,结果是没对齐.也尝试了用bootstrap的col-md ...
- tbody滚动条占位导致与thead表头错位
tbody出滚动条导致表头错位,上网上搜了一下,发现全是答非所问,能隐藏滚动条,还用问??我当前作出的效果是当tbody内容在正常情况下显示时,不显示滚动条,当内容区域高度超过外部容器时,滚动条自动显 ...
- CSS 设置table下tbody滚动条
table tbody { display:block; height:195px; overflow-y:scroll; } table thead, tbody tr { display:tabl ...
- CSS设置table下tbody滚动条与thead对齐的方法
<style>table tbody {display:block;height:195px;overflow-y:scroll;} table thead, tbody tr {disp ...
- Bootstrap表格中,thead固定,tbody有垂直滚动条
1.html源码:这里的table是使用的vue写法,实际生成的表格和一个一个写的tr th td无异 <div class="panel-body no-padding"& ...
- 给tbody加垂直滚动条的具体思路
[给tbody加垂直滚动条的具体思路] 给tbody加垂直滚动条的思路就是把tbody设置成display:block,然后就对其高度设置一个固定值,overflow设置成auto即可 参考:http ...
- 纯CSS,table的thead固定,tbody显示滚动条
以下代码,仅在谷歌下测试过 首先是html的table的代码: <table class="tablediv" id="myTable" border=& ...
- 通过css样式给表格tbody加垂直滚动条
tbody加滚动条实现思路: 1,把tbody设置成display:block,然后就对其高度设置一个固定值,overflow设置成auto. 2,把thead的tr设置成display:block. ...
- tbody设置超出固定的高度出现滚动条,没超出不显示。
没有超出时显示样式,不显示滚动条: 超出时显示滚动条: 1.html <table class="table"> <thead> <tr> &l ...
随机推荐
- java jdbc使用配置文件连接数据库:
java jdbc使用配置文件连接数据库: 创建后缀名为:.properties的文件,文件内容包括,数据库驱动.连接的数据库地址.用户名.密码…… 以Mysql为例创建config.properti ...
- SQL Server阻止了对组件xp_cmdshell过程的解决方案
使用SQL tools连接sqlserver时候出现以下问题: SQL Server阻止了对组件xp_cmdshell过程的解决方案错误描述:SQL Server阻止了对组件‘xp_cmdshell’ ...
- hdu 4738 Caocao's Bridges (tarjan求桥)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4738 题目大意:给一些点,用一些边把这些点相连,每一条边上有一个权值.现在要你破坏任意一个边(要付出相 ...
- JavaEE中遗漏的10个最重要的安全控制
本文由码农网 – 小峰原创翻译,转载请看清文末的转载要求,欢迎参与我们的付费投稿计划! JavaEE有一些超赞的内置安全机制,但它们远远不能覆盖应用程序要面临的所有威胁.很多常见攻击,例如跨站点脚本攻 ...
- 417. Pacific Atlantic Water Flow
正常做的,用了645MS..感觉DFS的时候剪枝有问题.. 为了剪枝可能需要标记一个点的4种情况: 1:滨临大西洋,所有太平洋来的点可以通过: 2:濒临太平洋,所有大西洋来的点可以通过: 3:都不濒临 ...
- google、baidu高级搜索技巧
1.baidu(可以去高级搜索查看更多信息) intitle搜索范围限定在网页标题:intitle:和后面的关键词之间不要有空格----intitle:中国 site搜索范围限定在特定站点中:“sit ...
- SQL 按月统计(两种方式) 分类: SQL Server 2014-08-04 15:36 154人阅读 评论(0) 收藏
(1)Convert 函数 select Convert ( VARCHAR(7),ComeDate,120) as Date ,Count(In_code) as 单数,Sum(SumTrueNum ...
- WCF服务发布到IIS时候,只能根据hostname访问,不能根据IP地址访问的解决办法
本文转载:http://www.cnblogs.com/deerbox/archive/2013/05/13/3076248.html 环境: VS2010 sp1,.net framework 4. ...
- java.lang.RuntimeException: Missing type parameter
程序中用到了gson的new typeToken,结果打包成apk发布时,发现抛出异常,但不通过打包apk时发现一切正常,百思不得其解,最初怀疑没有将gson-1.7.1.JAR打包进去,后来经过测试 ...
- Java的演变过程
1. 1996.01.23 JDK1.0 代号Oak:212个类.8个包: 2. 1997.02.19 JDK1.1 504个类.23个包: Java Bean.远程方法调用(RMI).JAR文件格式 ...