tbody 滚动条

ARRIVALS TO BRISTOL - ENGLAND

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-collapse: separate; border-spacing: 2px; vertical-align: middle; }
.table-mod thead tr { position: absolute; top:30px;*top:28px; left: 0; }
.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>
        <tr>
          <th>FLIGHT CODE</th>
          <th class="td2">FROM</th>
          <th>STA</th>
          <th>ETA</th>
          <th class="nd">Notes</th>
        </tr>
      </thead>
      <tbody>
        <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>PARIS-CDG</td>
          <td>11:45</td>
          <td>11:57</td>
          <td>LANDED AT 11:58</td>
        </tr>
        <tr>
          <th>BE 843</th>
          <td>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>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>MALAGA</td>
          <td>12:15</td>
          <td>11:55</td>
          <td>LANDED AT 11:55</td>
        </tr>
        <tr>
          <th>EZY 6074</th>
          <td>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>VALENCIA</td>
          <td>12:40</td>
          <td>12:49</td>
          <td>LANDED AT 12:48</td>
        </tr>
        <tr>
          <th>BA 4023</th>
          <td>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>DUBLIN</td>
          <td>13:00</td>
          <td>12:52</td>
          <td>LANDED AT 12:51</td>
        </tr>
        <tr>
          <th>T3 4264</th>
          <td>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>PARIS-CDG</td>
          <td>11:45</td>
          <td>11:57</td>
          <td>LANDED AT 11:58</td>
        </tr>
        <tr>
          <th>BE 843</th>
          <td>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>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>MALAGA</td>
          <td>12:15</td>
          <td>11:55</td>
          <td>LANDED AT 11:55</td>
        </tr>
        <tr>
          <th>EZY 6074</th>
          <td>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>VALENCIA</td>
          <td>12:40</td>
          <td>12:49</td>
          <td>LANDED AT 12:48</td>
        </tr>
        <tr>
          <th>BA 4023</th>
          <td>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>DUBLIN</td>
          <td>13:00</td>
          <td>12:52</td>
          <td>LANDED AT 12:51</td>
        </tr>
      </tbody>
    </table>
  </div>
</div>
</body>
</html>
时间: 2024-11-06 18:16:22

tbody 滚动条的相关文章

CSS 设置table下tbody滚动条

table tbody { display:block; height:195px; overflow-y:scroll; } table thead, tbody tr { display:table; width:100%; table-layout:fixed; }

给tbody加垂直滚动条的具体思路

[给tbody加垂直滚动条的具体思路] 给tbody加垂直滚动条的思路就是把tbody设置成display:block,然后就对其高度设置一个固定值,overflow设置成auto即可 参考:http://www.jb51.net/css/135898.html

纯CSS,table的thead固定,tbody显示滚动条

首先是html的table的代码: 1 <table class="tablediv" id="myTable" border="1"> 2 <thead> 3 <tr> 4 <td class="wt40">111asdasdassd</td> 5 <td class="wt50">222asdsa</td> 6 <

通过css样式给表格tbody加垂直滚动条

tbody加滚动条实现思路: 1,把tbody设置成display:block,然后就对其高度设置一个固定值,overflow设置成auto. 2,把thead的tr设置成display:block. 3,因为都设置成block所以要给td手动添加宽度. 4,考虑到 tbody 产生了滚动条,这时会影响tbody以及thead的宽度,可以采用针对tbody设置::-webkit-scrollbar进行解决. 代码实现: .table thead tr { display:block; } .ta

一种table超出高度进出滚动条的解决方案

在日常的开发过程中,我们可能会遇到这样一种需求,在指定高度内显示table,超过高度时表格出滚动条. 让我们带着这个问题,一起来探讨吧! 1 <!DOCTYPE html> 2 <html xmlns="http://www.w3.org/1999/xhtml" ng-app="app"> 3 <head> 4 <title></title> 5 <link href="../css/boo

table 设置表格有滚动条。

<!DOCTYPE HTML> 2 <html> 3 4 <head> 5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 6 <title>设置表格有滚动条</title> 7 <style> 8 * { 9 margin: 0; 10 padding: 0; 11 } 12 13 table

jquery——移动端滚动条插件iScroll.js

官网:http://cubiq.org/iscroll-5 demo: 滚动刷新:http://cubiq.org/dropbox/iscroll4/examples/pull-to-refresh/ 'Carousel' demo iScroll功能很强大,目前我只用来 自定义滚动条 以下简单介绍一下iscrol在移动端自定义滚动条时的使用和注意事项. 一.用法 iScroll对要滚动的元素进行初始化,且不限制一个页面中使用iScroll的元素个数. 使用iScroll时,DOM树的结构要足够

div滚动条弹出层效果

<%--总的弹出层--%> <div class="tcck" id="joinclub" style="display:none"> <table style="width:430px; height:7px;" border="0" cellpadding="0" cellspacing="0" > <tr style=&

给指定的div增加滚动条

这次的需求是给一个指定的div(里面有个table表格)增加上下.左右的滚动条 通过查找资料后找到了一个可用的方法,代码如下: <!--div比table大小要小才会显示--> <div style="overflow-x: auto; overflow-y: auto; height: 100px; width:200px;"> <table id="table" border="1" align="ce