在可滚动的div

时间:2016-09-08 05:00:54

标签: jquery css

我有一个相当大的表位于固定的div中,设置为溢出。这会添加一个水平滚动条很好,但我希望能够在可滚动的div中拖动我的表,所以基本上不仅仅依靠滚动条来滚动表格。

我的(示例)代码:



.box {
  overflow-x: auto;
  overflow-y: hidden;
  width: 500px;
}
table {
  width: 100%;
}
table td,
table th {
  padding: 5px;
}

<div class="box">
  <table>
    <thead>
      <tr>
        <th>Column1</th>
        <th>Column2</th>
        <th>Column3</th>
        <th>Column4</th>
        <th>Column5</th>
        <th>Column6</th>
        <th>Column7</th>
        <th>Column8</th>
        <th>Column9</th>
        <th>Column10</th>
        <th>Column11</th>
        <th>Column12</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>Lorem ipsum dolor sit amet bla bla etc</td>
        <td>Lorem ipsum dolor sit amet bla bla etc</td>
        <td>Lorem ipsum dolor sit amet bla bla etc</td>
        <td>Lorem ipsum dolor sit amet bla bla etc</td>
        <td>Lorem ipsum dolor sit amet bla bla etc</td>
        <td>Lorem ipsum dolor sit amet bla bla etc</td>
        <td>Lorem ipsum dolor sit amet bla bla etc</td>
        <td>Lorem ipsum dolor sit amet bla bla etc</td>
        <td>Lorem ipsum dolor sit amet bla bla etc</td>
        <td>Lorem ipsum dolor sit amet bla bla etc</td>
        <td>Lorem ipsum dolor sit amet bla bla etc</td>
        <td>Lorem ipsum dolor sit amet bla bla etc</td>
      </tr>
    </tbody>
  </table>
</div>
&#13;
&#13;
&#13;

我试过jquery draggable但是没有得到相同的结果。有关如何使用css或jquery实现此目的的任何想法?理想情况下,我只想用css做这个,但我不确定这是否可行。内容只需要水平拖动。

小提琴:https://jsfiddle.net/41gv8y77/

3 个答案:

答案 0 :(得分:5)

可能(正如您所能想象的)但在逻辑上使用 JavaScript ,导致CSS 拖动(或更好:事件)不可知

以下是使用jQuery的示例:

var mx;

$(".xDragScroll").on({
  mousemove: function(e) {
    var mx2 = e.pageX - this.offsetLeft;
    if(mx) this.scrollLeft = this.sx + mx - mx2;
  },
  mousedown: function(e) {
    this.sx = this.scrollLeft;
    mx = e.pageX - this.offsetLeft;
  }
});

$(document).on("mouseup", function(){
  mx = 0;
});

您也可以轻松地更改或扩展Y轴的上述脚本。

var mx = 0;

$(".drag").on({
  mousemove: function(e) {
    var mx2 = e.pageX - this.offsetLeft;
    if(mx) this.scrollLeft = this.sx + mx - mx2;
  },
  mousedown: function(e) {
    this.sx = this.scrollLeft;
    mx = e.pageX - this.offsetLeft;
  }
});

$(document).on("mouseup", function(){
  mx = 0;
});
*{box-sizing:border-box; -webkit-box-sizing:border-box;}
html, body{height:100%; margin:0; font:16px/20px sans-serif;}

.box {
  overflow-x: auto;
  overflow-y: hidden;
  width: 500px;
  margin:60px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;  
  -moz-user-select: none;   
  -ms-user-select: none;     
  user-select: none; 
}
table {
  width: 100%;
}
table td,
table th {
  padding: 5px;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="box drag">
<table>
  <thead>
    <tr>
      <th>Column1</th>
      <th>Column2</th>
      <th>Column3</th>
      <th>Column4</th>
      <th>Column5</th>
      <th>Column6</th>
      <th>Column7</th>
      <th>Column8</th>
      <th>Column9</th>
      <th>Column10</th>
      <th>Column11</th>
      <th>Column12</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Lorem ipsum dolor sit amet bla bla etc</td>
      <td>Lorem ipsum dolor sit amet bla bla etc</td>
      <td>Lorem ipsum dolor sit amet bla bla etc</td>
      <td>Lorem ipsum dolor sit amet bla bla etc</td>
      <td>Lorem ipsum dolor sit amet bla bla etc</td>
      <td>Lorem ipsum dolor sit amet bla bla etc</td>
      <td>Lorem ipsum dolor sit amet bla bla etc</td>
      <td>Lorem ipsum dolor sit amet bla bla etc</td>
      <td>Lorem ipsum dolor sit amet bla bla etc</td>
      <td>Lorem ipsum dolor sit amet bla bla etc</td>
      <td>Lorem ipsum dolor sit amet bla bla etc</td>
      <td>Lorem ipsum dolor sit amet bla bla etc</td>
    </tr>
  </tbody>
</table>
</div>

答案 1 :(得分:4)

使用纯JavaScript(香草)

var elementScroll = document.querySelector('.drag');
var mx = 0;

elementScroll.addEventListener("mousedown", function(e){
  this.sx = this.scrollLeft;
  mx = e.pageX - this.offsetLeft;

  this.addEventListener("mousemove", mouseMoveFunction);
});

elementScroll.addEventListener("mouseup", function(e){
  this.removeEventListener("mousemove", mouseMoveFunction);
  mx = 0;
});

function mouseMoveFunction(e){
  var mx2 = e.pageX - this.offsetLeft;
  if(mx) this.scrollLeft = this.sx + mx - mx2;
}
*{box-sizing:border-box; -webkit-box-sizing:border-box;}
html, body{height:100%; margin:0; font:16px/20px sans-serif;}

.box {
  overflow-x: auto;
  overflow-y: hidden;
  width: 500px;
  margin:60px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;  
  -moz-user-select: none;   
  -ms-user-select: none;     
  user-select: none; 
}
table {
  width: 100%;
}
table td,
table th {
  padding: 5px;
}
<div class="box drag">
<table>
  <thead>
    <tr>
      <th>Column1</th>
      <th>Column2</th>
      <th>Column3</th>
      <th>Column4</th>
      <th>Column5</th>
      <th>Column6</th>
      <th>Column7</th>
      <th>Column8</th>
      <th>Column9</th>
      <th>Column10</th>
      <th>Column11</th>
      <th>Column12</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Lorem ipsum dolor sit amet bla bla etc</td>
      <td>Lorem ipsum dolor sit amet bla bla etc</td>
      <td>Lorem ipsum dolor sit amet bla bla etc</td>
      <td>Lorem ipsum dolor sit amet bla bla etc</td>
      <td>Lorem ipsum dolor sit amet bla bla etc</td>
      <td>Lorem ipsum dolor sit amet bla bla etc</td>
      <td>Lorem ipsum dolor sit amet bla bla etc</td>
      <td>Lorem ipsum dolor sit amet bla bla etc</td>
      <td>Lorem ipsum dolor sit amet bla bla etc</td>
      <td>Lorem ipsum dolor sit amet bla bla etc</td>
      <td>Lorem ipsum dolor sit amet bla bla etc</td>
      <td>Lorem ipsum dolor sit amet bla bla etc</td>
    </tr>
  </tbody>
</table>
</div>

答案 2 :(得分:1)

您还可以垂直拖动和滚动。要保持标题不变,您可以创建表的副本,并隐藏其中一个的主体,并隐藏另一个的主体。

var tableBody = document.getElementById('scrollDragable');
var headerTable = document.getElementById('scrollDragableHeader');
var curDown = false
var oldScrollLeft = 0;
var oldScrollTop = 0;
var curXPos = 0;
var curYPos = 0;

tableBody.addEventListener("mousemove", function(e) {
	if (curDown === true) {
  	tableBody.scrollLeft = oldScrollLeft + (curXPos - e.pageX);
    headerTable.scrollLeft = oldScrollLeft + (curXPos - e.pageX);
    tableBody.scrollTop = oldScrollTop + (curYPos - e.pageY);
  }
})

tableBody.addEventListener("mousedown", function(e) {
	curDown = true;
  curYPos = e.pageY;
  curXPos = e.pageX;
  oldScrollLeft = tableBody.scrollLeft;
  oldScrollTop = tableBody.scrollTop;
})

tableBody.addEventListener("mouseup", function(e) {
	curDown = false;
})

//Ensures the header scrolls when the user uses the scrollbar
tableBody.addEventListener("scroll", function(e) {
  	headerTable.scrollLeft = tableBody.scrollLeft;
})
#scrollDragable {
  width: auto;
  height: 600px;
  overflow-x: scroll;
  overflow-y: scroll;
  border: 1px solid #ccc;
  
  /* Prevent the text from highlighting when dragging */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#scrollDragableHeader {
  border: 1px solid #ccc;
  overflow-x: hidden;
  overflow-y: scroll;
  
  /* Prevent the text from highlighting when dragging */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
<div id="scrollDragableHeader">
<!--Create a table and hide the body but show the header -->
<table>
  <thead>
    <tr>
      <th>Column1</th>
      <th>Column2</th>
      <th>Column3</th>
      <th>Column4</th>
      <th>Column5</th>
      <th>Column6</th>
      <th>Column7</th>
      <th>Column8</th>
      <th>Column9</th>
      <th>Column10</th>
      <th>Column11</th>
      <th>Column12</th>
      <th>Column13</th>
      <th>Column14</th>
      <th>Column15</th>
      <th>Column16</th>
      <th>Column17</th>
    </tr>
  </thead>
  <tbody hidden>
    <tr>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
    </tr>
    <tr>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
    </tr>
    <tr>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
    </tr>
    <tr>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
    </tr>
    <tr>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
    </tr>
    <tr>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
    </tr>
    <tr>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
    </tr>
    <tr>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
    </tr>
    <tr>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
    </tr>
    <tr>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
    </tr> 
    <tr>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
    </tr>    
  </tbody>
</table>
</div>
<div id="scrollDragable">

<!--Create a clone of the table and hide the header and show the body-->
<table>
  <thead style="visibility:collapse;">
    <tr>
      <th>Column1</th>
      <th>Column2</th>
      <th>Column3</th>
      <th>Column4</th>
      <th>Column5</th>
      <th>Column6</th>
      <th>Column7</th>
      <th>Column8</th>
      <th>Column9</th>
      <th>Column10</th>
      <th>Column11</th>
      <th>Column12</th>
      <th>Column13</th>
      <th>Column14</th>
      <th>Column15</th>
      <th>Column16</th>
      <th>Column17</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
    </tr>
    <tr>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
    </tr>
    <tr>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
    </tr>
    <tr>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
    </tr>
    <tr>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
    </tr>
    <tr>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
    </tr>
    <tr>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
    </tr>
    <tr>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
    </tr>
    <tr>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
    </tr>
    <tr>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
    </tr>
    <tr>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
      <td>Lorem ipsum dolor sit amet</td>
    </tr>    
  </tbody>
</table>
</div>