jquery 기반 헤더 고정 방법
43233 단어 표두 고정
(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);
페이지 호출 은 다음 과 같 습 니 다
...
<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 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>
이 방법 은 IE 와 FF 의 호환성 이 좋 습 니 다.추천 합 니 다.B:css 필 터 를 이용 하여 이 루어 지지 만 FF 는 마이크로소프트 를 지원 하지 않 고 호 환 되 지 않 습 니 다.DOM 은 다음 과 같 습 니 다
<!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;}
/* : */
.scrollRowThead{position: relative; left: expression(this.parentElement.parentElement.parentElement.parentElement.scrollLeft);
z-index:0;}
/* : */
.scrollColThead {position: relative;top: expression(this.parentElement.parentElement.parentElement.scrollTop);z-index:2; height:20px;}
/* */
.scrollCR { z-index:3;}
/*div */
.scrollDiv {height:200px;clear: both; border: 1px solid #EEEEEE;OVERFLOW: scroll;width: 500px; }
/* */
.scrollColThead td,.scrollColThead th
{ text-align: center ;}
/* */
.scrollRowThead,.scrollColThead td,.scrollColThead th
{background-color:EEEEEE; height:20px;}
/* */
.scrolltable{
border-bottom:1px solid #CCCCCC; border-right:1px solid #CCCCCC; }
/* */
.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"> </th>
<th colspan="2"> </th>
<th colspan="2"> </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> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td class="scrollRowThead" >
<input type="checkbox" name="checkbox2" value="checkbox">
b</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td nowrap class="scrollRowThead" >
<input type="checkbox" name="checkbox3" value="checkbox">
c</td>
<td nowrap> 2</td>
<td nowrap> 3</td>
<td nowrap> 4</td>
<td nowrap> 5</td>
<td nowrap> 6</td>
<td nowrap> 7</td>
</tr>
<tr>
<td class="scrollRowThead" >
<input type="checkbox" name="checkbox4" value="checkbox">
d</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td class="scrollRowThead" >
<input type="checkbox" name="checkbox5" value="checkbox">
e</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td class="scrollRowThead" >
<input type="checkbox" name="checkbox6" value="checkbox">
f</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td class="scrollRowThead" >
<input type="checkbox" name="checkbox7" value="checkbox">
g</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td class="scrollRowThead" >
<input type="checkbox" name="checkbox4" value="checkbox">
d</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td class="scrollRowThead" >
<input type="checkbox" name="checkbox5" value="checkbox">
e</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td class="scrollRowThead" >
<input type="checkbox" name="checkbox6" value="checkbox">
f</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td class="scrollRowThead" >
<input type="checkbox" name="checkbox7" value="checkbox">
g</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td class="scrollRowThead" >
<input type="checkbox" name="checkbox4" value="checkbox">
d</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td class="scrollRowThead" >
<input type="checkbox" name="checkbox5" value="checkbox">
e</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td class="scrollRowThead" >
<input type="checkbox" name="checkbox6" value="checkbox">
f</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td class="scrollRowThead" >
<input type="checkbox" name="checkbox7" value="checkbox">
g</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td class="scrollRowThead" >
<input type="checkbox" name="checkbox4" value="checkbox">
d</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td class="scrollRowThead" >
<input type="checkbox" name="checkbox5" value="checkbox">
e</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td class="scrollRowThead" >
<input type="checkbox" name="checkbox6" value="checkbox">
f</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td class="scrollRowThead" >
<input type="checkbox" name="checkbox7" value="checkbox">
g</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td class="scrollRowThead" >
<input type="checkbox" name="checkbox4" value="checkbox">
d</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td class="scrollRowThead" >
<input type="checkbox" name="checkbox5" value="checkbox">
e</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td class="scrollRowThead" >
<input type="checkbox" name="checkbox6" value="checkbox">
f</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td class="scrollRowThead" >
<input type="checkbox" name="checkbox7" value="checkbox">
g</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td class="scrollRowThead" >
<input type="checkbox" name="checkbox4" value="checkbox">
d</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td class="scrollRowThead" >
<input type="checkbox" name="checkbox5" value="checkbox">
e</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td class="scrollRowThead" >
<input type="checkbox" name="checkbox6" value="checkbox">
f</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td class="scrollRowThead" >
<input type="checkbox" name="checkbox7" value="checkbox">
g</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td class="scrollRowThead" >
<input type="checkbox" name="checkbox4" value="checkbox">
d</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td class="scrollRowThead" >
<input type="checkbox" name="checkbox5" value="checkbox">
e</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td class="scrollRowThead" >
<input type="checkbox" name="checkbox6" value="checkbox">
f</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td class="scrollRowThead" >
<input type="checkbox" name="checkbox7" value="checkbox">
g</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
</table>
</BODY>
</HTML>
C:가장 쉬 운 방법 은 당연히 table 2 개 를 쓰 는 것 입 니 다.DIV 의 overflow-y:auto 로 이 루어 집 니 다.호환성 은 절대 문제 가 없습니다.번 거 로 운 점 은 2 개의 table 정렬 문제 입 니 다.또한 스 크 립 트 로 높이 를 부여 하면 onresize()방법 이 필요 합 니 다.DOM 은 다음 과 같다
<!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> </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:" ",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:" ",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"> </th>
<th colspan="2"> </th>
<th colspan="2"> </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> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox2" value="checkbox">
b</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td nowrap >
<input type="checkbox" name="checkbox3" value="checkbox">
c</td>
<td nowrap> 2</td>
<td nowrap> 3</td>
<td nowrap> 4</td>
<td nowrap> 5</td>
<td nowrap> 6</td>
<td nowrap> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox4" value="checkbox">
d</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox5" value="checkbox">
e</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox6" value="checkbox">
f</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox7" value="checkbox">
g</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox4" value="checkbox">
d</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox5" value="checkbox">
e</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox6" value="checkbox">
f</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox7" value="checkbox">
g</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox4" value="checkbox">
d</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox5" value="checkbox">
e</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox6" value="checkbox">
f</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox7" value="checkbox">
g</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox4" value="checkbox">
d</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox5" value="checkbox">
e</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox6" value="checkbox">
f</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox7" value="checkbox">
g</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox4" value="checkbox">
d</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox5" value="checkbox">
e</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox6" value="checkbox">
f</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox7" value="checkbox">
g</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox4" value="checkbox">
d</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox5" value="checkbox">
e</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox6" value="checkbox">
f</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox7" value="checkbox">
g</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox4" value="checkbox">
d</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox5" value="checkbox">
e</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox6" value="checkbox">
f</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox7" value="checkbox">
g</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox" value="checkbox">
a</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox2" value="checkbox">
b</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td nowrap >
<input type="checkbox" name="checkbox3" value="checkbox">
c</td>
<td nowrap> 2</td>
<td nowrap> 3</td>
<td nowrap> 4</td>
<td nowrap> 5</td>
<td nowrap> 6</td>
<td nowrap> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox4" value="checkbox">
d</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox5" value="checkbox">
e</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox6" value="checkbox">
f</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox7" value="checkbox">
g</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox4" value="checkbox">
d</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox5" value="checkbox">
e</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox6" value="checkbox">
f</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox7" value="checkbox">
g</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox4" value="checkbox">
d</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox5" value="checkbox">
e</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox6" value="checkbox">
f</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox7" value="checkbox">
g</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox4" value="checkbox">
d</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox5" value="checkbox">
e</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox6" value="checkbox">
f</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox7" value="checkbox">
g</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox4" value="checkbox">
d</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox5" value="checkbox">
e</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox6" value="checkbox">
f</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox7" value="checkbox">
g</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox4" value="checkbox">
d</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox5" value="checkbox">
e</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox6" value="checkbox">
f</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox7" value="checkbox">
g</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox4" value="checkbox">
d</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox5" value="checkbox">
e</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox6" value="checkbox">
f</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
<tr>
<td >
<input type="checkbox" name="checkbox7" value="checkbox">
g</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
<td> 7</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
가끔 가장 멍청 한 방법 도 가장 간단 하고 가장 좋 은 방법 일 수 있다.이렇게 쓰 는 호환성 은 절대적 으로 안전 하고 유연성 도 좋다.