Some methods of table-head fixation based on jquery _jquery

Source: Internet
Author: User
Tags prev support microsoft
A: Use the jquery UI plugin, with Div replacement Table,overflow-y:hidden to achieve scrolling, so that thead absolute positioning to achieve a fixed purpose, the following methods:


Copy Code code as follows:



(function ($) {


$.chromatable = {


Defaults: {


Width: "900px",


Height: "300px",


Scrolling: "Yes"


}


};


$.fn.chromatable = function (options) {


var options = $.extend ({}, $.chromatable.defaults, options);


Return This.each (function () {


var $this = $ (this);


var $uniqueID = $ (this). attr ("ID") + ("wrapper");


$ (this). CSS (' width ', options.width). addclass ("_scrolling");


$ (this). Wrap (' <div class= "Scrolling_outer" ><div id= "' + $uniqueID + '" class= "Scrolling_inner" ></div ></div> ');


$ (". Scrolling_outer"). css ({' position ': ' relative '});


$ ("#" + $uniqueID). CSS (


{' Border ': ' 1px solid #CCCCCC ',


' Overflow-x ': ' Hidden ',


' overflow-y ': ' Auto ',


' Padding-right ': ' 17px '


});


$ ("#" + $uniqueID). css (' height ', options.height);


$ ("#" + $uniqueID). css (' width ', options.width);


$ (this). Before ($ (this). Clone (). attr ("id", ""). AddClass ("_thead"). CSS (


{' width ': ' Auto ',


' Display ': ' Block ',


' Position ': ' absolute ',


' Border ': ' None ',


' Border-bottom ': ' 1px solid #CCC ',


' Top ': ' 1px '


}));


$ ('. _thead '). Children (' tbody '). Remove ();


$ (this). each (function ($this) {


if (Options.width = = "100%" | | | options.width = = "Auto") {


$ ("#" + $uniqueID). css ({' padding-right ': ' 0px '});


}


if (options.scrolling = = "No") {


$ ("#" + $uniqueID). Before (' <a href= "#" class= "Expander" style= "width:100%;" >expand table</a> ');


$ ("#" + $uniqueID). css ({' padding-right ': ' 0px '});


$ (". Expander"). each (


function (int) {


$ (this). attr ("ID", int);


$ (this). Bind ("click", Function () {


$ ("#" + $uniqueID). css ({' Height ': ' Auto '});


$ ("#" + $uniqueID + ". _thead"). Remove ();


$ (this). Remove ();


});


});


$ ("#" + $uniqueID). Resizable ({handles: ' s '}). css ("overflow-y", "hidden");


}


});


$curr = $this. Prev ();


$ ("thead:eq (0) >tr th", this). each (function (i) {


$ ("thead:eq (0) >tr th:eq (" +i+ ")", $curr). Width ($ (this). width ());


});


if (Options.width = = "100%" | | "Auto") {


$ (window). Resize (function () {


Resizer ($this);


});


}


});


};


function Resizer ($this) {


$curr = $this. Prev ();


$ ("thead:eq (0) >tr th", $this). Each (function (i) {


$ ("thead:eq (0) >tr th:eq (" +i+ ")", $curr). Width ($ (this). width ());


});


};


}) (JQuery);





The page calls are as follows:


Copy Code code as follows:



...


<script type= "Text/javascript" src= "Jquery-ui-min.js" ></script>


<script>


$ (function () {


$ ("#yourTableID"). Chromatable ({


Width: "900px",


Height: "400px",


Scrolling: "Yes"


});


});


</script>


...


<table id= "Yourtableid" width= "100%" border= "0" cellspacing= "0" cellpadding= "0" >


<thead>


<tr>


<th>check out of this header</th>


<th>look here ' s another one</th>


<th>wow, look at me!</th>


</tr>


</thead>


<tbody>


<tr>


<td>some content goes in here</td>


<td>praesent vitae ligula nec Orci pretium vestibulum</td>


<td>maecenas Tempus dictum libero</td>


</tr>


...


<tr>


<td>quisque in Wisi quis orci tincidunt fermentum</td>


<td>mauris Aliquet Mattis metus</td>


<td>etiam eu ante non leo Egestas nonummy</td>


</tr>


</tbody>


</table>





This method of IE and FF compatibility is very good, recommended.


B: Using CSS filters to implement, but FF does not support Microsoft's things, incompatible. The DOM is as follows:


Copy Code code as follows:



<! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 transitional//en" >


<HTML>


<HEAD>


<TITLE> New Document </TITLE>


</HEAD>


<style type= "Text/css" >


<!--


Body,table, TD, a {font:9pt;}


/* Focus: Fixed wardrobe style * *


. Scrollrowthead{position:relative Left:expression ( This.parentElement.parentElement.parentElement.parentElement.scrollLeft);


z-index:0;}


/* Focus: Fixed header style * *


. scrollcolthead {position:relative;top:expression (THIS.PARENTELEMENT.PARENTELEMENT.PARENTELEMENT.SCROLLTOP); Z-index:2; height:20px;}


* * The place where the rows cross


. SCROLLCR {Z-index:3}


/*DIV Outer Frame * *


. scrolldiv {height:200px;clear:both; border:1px solid #EEEEEE; overflow:scroll;width:500px;}


* * The Wardrobe Center/


. scrollcolthead td,.scrollcolthead th


{text-align:center;}


/* Wardrobe Header Background * *


. scrollrowthead,.scrollcolthead td,.scrollcolthead th


{background-color:eeeeee; height:20px;}


/* The line of the form * *


. scrolltable{


border-bottom:1px solid #CCCCCC; border-right:1px solid #CCCCCC; }


/* Cell line etc/*


. scrolltable td,.scrolltable th{


border-left:1px solid #CCCCCC; border-top:1px solid #CCCCCC; padding:5px; }


-->


</style>


<BODY>


<!--<div class= "Scrolldiv" id= "Scrolldiv" >-->


<table border= "0" cellpadding= "3" cellspacing= "0" width= "100%" class= "scrolltable" >


<tr class= "Scrollcolthead" >


<th class= "Scrollrowthead SCROLLCR" > </th>


<th colspan= "2" > Column head </th>


<th colspan= "2" > Column head </th>


<th colspan= "2" > Column head </th>


</tr>


<tr class= "Scrollcolthead" >


<th class= "Scrollrowthead SCROLLCR" >h1</th>


<th class= "Scrollrowthead SCROLLCR" >h2</th>


<th class= "Scrollrowthead SCROLLCR" >h3</th>


<th class= "Scrollrowthead SCROLLCR" >h4</th>


<th class= "Scrollrowthead SCROLLCR" >h5</th>


<th class= "Scrollrowthead SCROLLCR" >h6</th>


<th class= "Scrollrowthead SCROLLCR" >h7</th>


</tr>


<tr>


<TD class= "Scrollrowthead" >


<input type= "checkbox" name= "checkbox" value= "checkbox" >


A</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD class= "Scrollrowthead" >


<input type= "checkbox" Name= "CheckBox2" value= "checkbox" >


B</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD nowrap class= "Scrollrowthead" >


<input type= "checkbox" Name= "Checkbox3" value= "checkbox" >


C</td>


<TD nowrap> Cell 2</td>


<TD nowrap> Cell 3</td>


<TD nowrap> Cell 4</td>


<TD nowrap> Cell 5</td>


<TD nowrap> Cell 6</td>


<TD nowrap> Cell 7</td>


</tr>


<tr>


<TD class= "Scrollrowthead" >


<input type= "checkbox" Name= "checkbox4" value= "checkbox" >


D</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD class= "Scrollrowthead" >


<input type= "checkbox" Name= "checkbox5" value= "checkbox" >


E</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD class= "Scrollrowthead" >


<input type= "checkbox" Name= "checkbox6" value= "checkbox" >


F</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD class= "Scrollrowthead" >


<input type= "checkbox" Name= "checkbox7" value= "checkbox" >


G</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD class= "Scrollrowthead" >


<input type= "checkbox" Name= "checkbox4" value= "checkbox" >


D</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD class= "Scrollrowthead" >


<input type= "checkbox" Name= "checkbox5" value= "checkbox" >


E</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD class= "Scrollrowthead" >


<input type= "checkbox" Name= "checkbox6" value= "checkbox" >


F</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD class= "Scrollrowthead" >


<input type= "checkbox" Name= "checkbox7" value= "checkbox" >


G</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD class= "Scrollrowthead" >


<input type= "checkbox" Name= "checkbox4" value= "checkbox" >


D</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD class= "Scrollrowthead" >


<input type= "checkbox" Name= "checkbox5" value= "checkbox" >


E</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD class= "Scrollrowthead" >


<input type= "checkbox" Name= "checkbox6" value= "checkbox" >


F</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD class= "Scrollrowthead" >


<input type= "checkbox" Name= "checkbox7" value= "checkbox" >


G</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD class= "Scrollrowthead" >


<input type= "checkbox" Name= "checkbox4" value= "checkbox" >


D</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD class= "Scrollrowthead" >


<input type= "checkbox" Name= "checkbox5" value= "checkbox" >


E</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD class= "Scrollrowthead" >


<input type= "checkbox" Name= "checkbox6" value= "checkbox" >


F</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD class= "Scrollrowthead" >


<input type= "checkbox" Name= "checkbox7" value= "checkbox" >


G</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD class= "Scrollrowthead" >


<input type= "checkbox" Name= "checkbox4" value= "checkbox" >


D</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD class= "Scrollrowthead" >


<input type= "checkbox" Name= "checkbox5" value= "checkbox" >


E</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD class= "Scrollrowthead" >


<input type= "checkbox" Name= "checkbox6" value= "checkbox" >


F</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD class= "Scrollrowthead" >


<input type= "checkbox" Name= "checkbox7" value= "checkbox" >


G</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD class= "Scrollrowthead" >


<input type= "checkbox" Name= "checkbox4" value= "checkbox" >


D</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD class= "Scrollrowthead" >


<input type= "checkbox" Name= "checkbox5" value= "checkbox" >


E</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD class= "Scrollrowthead" >


<input type= "checkbox" Name= "checkbox6" value= "checkbox" >


F</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD class= "Scrollrowthead" >


<input type= "checkbox" Name= "checkbox7" value= "checkbox" >


G</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD class= "Scrollrowthead" >


<input type= "checkbox" Name= "checkbox4" value= "checkbox" >


D</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD class= "Scrollrowthead" >


<input type= "checkbox" Name= "checkbox5" value= "checkbox" >


E</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD class= "Scrollrowthead" >


<input type= "checkbox" Name= "checkbox6" value= "checkbox" >


F</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD class= "Scrollrowthead" >


<input type= "checkbox" Name= "checkbox7" value= "checkbox" >


G</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


</table>


</BODY>


</HTML>





C: The simplest method of course is to write 2 table, with Div overflow-y:auto to achieve, compatibility is absolutely no problem, the trouble lies in the 2 table alignment problem, in addition to use the script to give height, you need to add onresize () method. The DOM is as follows:


Copy Code code as follows:



<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">


<html xmlns= "http://www.w3.org/1999/xhtml" >


<head>


<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/>


<title> Untitled Document </title>


<style>


*,body,form,ul,li,p,h1,h2,h3,h4,h5,h6 {margin:0px;padding:0px;}


Body, TD, TH, input, select,p,span{font-family: "Microsoft Ya-Black", Arial, Helvetica, Sans-serif;}


Body,td,div{font-size:12px;color: #333; line-height:150%;-webkit-text-size-adjust:none;}


select{font-size:12px;}


A {blr:expression (This.onfocus=this.blur ()); font-family: "Microsoft Ya Hei", Arial, Helvetica, Sans-serif; font-size:12px;}


A:link, a:visited {text-decoration:none;color: #333;}


A:hover, a:active {text-decoration:underline;color: #F00;}


Ul,li,ol{list-style-type:none;} img {border:none;}


html{Overflow:hidden;}


. header{width:1000px; Margin:auto height:40px; background: #ccc;}


. mainer{width:1000px; margin:auto; height:auto; overflow-y:scroll;overflow-x:hidden;}


</style>


<script src= "Jquery-1.4.2.min.js" type= "Text/javascript" ></script>


<script type= "Text/javascript" >


function OnResize () {


$ (". Mainer"). Height ($ (window). Height ()-40);


}


$ (function () {


Onreszie ();


});


</script>


</head>


<body onresize= "onResize ()" >


<div class= "Header" >


<table border= "0" cellpadding= "3" cellspacing= "0" width= "100%" class= "scrolltable" >


<thead>


<tr >


<th > </th>


<th colspan= "2" > Column head </th>


<th colspan= "2" > Column head </th>


<th colspan= "2" > Column head </th>


</tr>


<tr >


<th >h1</th>


<th >h2</th>


<th >h3</th>


<th >h4</th>


<th >h5</th>


<th >h6</th>


<th >h7</th>


</tr>


</thead>


</table>


</div>


<div class= "Mainer" >


<table border= "0" cellpadding= "3" cellspacing= "0" width= "100%" class= "scrolltable" >


<tbody>


<tr>


<TD >


<input type= "checkbox" name= "checkbox" value= "checkbox" >


A</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "CheckBox2" value= "checkbox" >


B</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD nowrap >


<input type= "checkbox" Name= "Checkbox3" value= "checkbox" >


C</td>


<TD nowrap> Cell 2</td>


<TD nowrap> Cell 3</td>


<TD nowrap> Cell 4</td>


<TD nowrap> Cell 5</td>


<TD nowrap> Cell 6</td>


<TD nowrap> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox4" value= "checkbox" >


D</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox5" value= "checkbox" >


E</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox6" value= "checkbox" >


F</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox7" value= "checkbox" >


G</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox4" value= "checkbox" >


D</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox5" value= "checkbox" >


E</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox6" value= "checkbox" >


F</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox7" value= "checkbox" >


G</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox4" value= "checkbox" >


D</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox5" value= "checkbox" >


E</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox6" value= "checkbox" >


F</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox7" value= "checkbox" >


G</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox4" value= "checkbox" >


D</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox5" value= "checkbox" >


E</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox6" value= "checkbox" >


F</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox7" value= "checkbox" >


G</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox4" value= "checkbox" >


D</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox5" value= "checkbox" >


E</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox6" value= "checkbox" >


F</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox7" value= "checkbox" >


G</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox4" value= "checkbox" >


D</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox5" value= "checkbox" >


E</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox6" value= "checkbox" >


F</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox7" value= "checkbox" >


G</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox4" value= "checkbox" >


D</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox5" value= "checkbox" >


E</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox6" value= "checkbox" >


F</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox7" value= "checkbox" >


G</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" name= "checkbox" value= "checkbox" >


A</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "CheckBox2" value= "checkbox" >


B</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD nowrap >


<input type= "checkbox" Name= "Checkbox3" value= "checkbox" >


C</td>


<TD nowrap> Cell 2</td>


<TD nowrap> Cell 3</td>


<TD nowrap> Cell 4</td>


<TD nowrap> Cell 5</td>


<TD nowrap> Cell 6</td>


<TD nowrap> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox4" value= "checkbox" >


D</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox5" value= "checkbox" >


E</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox6" value= "checkbox" >


F</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox7" value= "checkbox" >


G</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox4" value= "checkbox" >


D</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox5" value= "checkbox" >


E</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox6" value= "checkbox" >


F</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox7" value= "checkbox" >


G</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox4" value= "checkbox" >


D</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox5" value= "checkbox" >


E</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox6" value= "checkbox" >


F</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox7" value= "checkbox" >


G</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox4" value= "checkbox" >


D</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox5" value= "checkbox" >


E</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox6" value= "checkbox" >


F</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox7" value= "checkbox" >


G</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox4" value= "checkbox" >


D</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox5" value= "checkbox" >


E</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox6" value= "checkbox" >


F</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox7" value= "checkbox" >


G</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox4" value= "checkbox" >


D</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox5" value= "checkbox" >


E</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox6" value= "checkbox" >


F</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox7" value= "checkbox" >


G</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox4" value= "checkbox" >


D</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox5" value= "checkbox" >


E</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox6" value= "checkbox" >


F</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


<tr>


<TD >


<input type= "checkbox" Name= "checkbox7" value= "checkbox" >


G</td>


<td> Cell 2</td>


<td> Cell 3</td>


<td> Cell 4</td>


<td> Cell 5</td>


<td> Cell 6</td>


<td> Cell 7</td>


</tr>


</tbody>


</table>


</div>


</body>


</html>





Sometimes the stupidest method is probably the easiest and best way to write, and the compatibility is absolutely safe and the flexibility is good.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.