JSFiddle - React, Tailwind, and code Playground
by Zeaklous
HTML
<script src="http://getbootstrap.com/javascript/"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.1.0/bootstrap.min.js"></script>
<div>
<ul class="nav nav-tabs" id="tab123" style="margin-top: 26px;">
<li><a href="#div1" data-toggle="tab">Tab1</a>
</li>
<li><a href="#div2" data-toggle="tab">Tab2</a>
</li>
</ul>
<div class="tab-content" style="overflow: hidden; margin-left: 20px; height: 504px;">
<div id="div1" class="tab-pane">
<div style="height:60px; width:475px;" class="tab-pane">
<table id="tblSysDetails1" style="width: 100%;position:relative;cursor: default;float: left" border="1">
<thead>
<tr>
<th></th>
<th>Text1</th>
<th>Text2</th>
<th>Text3</th>
<th></th>
<th>Text5</th>
</tr>
</thead>
<tbody style="height:38px;">
<tr>
<td></td>
<td>BBB1</td>
<td>CCC</td>
<td>DDD</td>
<td></td>
<td>XXX</td>
</tr>
<tr>
<td></td>
<td>BBB2</td>
<td>CCC</td>
<td>DDD</td>
<td></td>
<td>XXX</td>
</tr>
<tr>
<td></td>
<td>BBB3</td>
<td>CCC</td>
<td>DDD</td>
<td></td>
<td>XXX</td>
...
CSS
th, td {
padding:0px;
margin:0px;
text-align:left;
}
th:nth-child(1), td:nth-child(1) {
width:0px;
visibility:hidden;
}
th:nth-child(2), td:nth-child(2) {
width: 130px;
}
th:nth-child(3), td:nth-child(3) {
width:181px;
}
th:nth-child(4), td:nth-child(4) {
width:85px;
}
th:nth-child(5), td:nth-child(5) {
width:.5px;
}
th:nth-child(6), td:nth-child(6) {
width:70px;
text-align:center;
}
tbody {
overflow:hidden;
}
tbody:hover {
overflow-y: scroll;
}
thead > tr, tbody{
display:block;
}
/*!
* Bootstrap v2.1.1
*
* Copyright 2012 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
*/
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section {
display: block;
}
audio, canvas, video {
display: inline-block;
*display: inline;
*zoom: 1;
}
audio:not([controls]) {
display: none;
}
html {
font-size: 100%;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
a:focus {
outline: thin dotted #333;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}
a:hover, a:active {
outline: 0;
}
sub, sup {
position: relative;
font-size: 75%;
line-height: 0;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
img {
/* Responsive images (ensure images don't scale beyond their parents) */
max-width: 100%;
/* Part 1: Set a maxium relative to the parent */
width: auto\9;
/* IE7-8 need help adjusting responsive images */
height: auto;
/* Part 2: Scale the height according to the width, otherwise you get stretching */
vertical-align: middle;
border: 0;
-ms-interpolation-mode: bicubic;
}
#map_canvas img {
max-width: none;
}
button, input, select, textarea {
margin: 0;
font-size: 100%;
vertical-align: middle;
}
button,...
JavaScript
$(function () {
$('#tab123 li:eq(0) a').tab('show');
});