| 추락하는 것은 날개가 있다? (0) | 2008/06/20 |
|---|---|
| 아무리 바빠도.. (2) | 2008/05/08 |
| 옥션 해킹 피해자 리스트에 들어있군요.. (0) | 2008/04/17 |
| 좋은 일.. (0) | 2008/03/05 |
<!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>
<title> Table Row Striping </title>
<style type="text/css">
.striped {
background-color: #a0a0a0;
}
</style>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript">
$(window).load(function() {
$("table tbody tr:nth-child(odd)").addClass("striped");
});
</script>
</head>
<body>
<table border="1">
<thead>
<tr>
<th>숫자</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
</tr>
<tr>
<td>2</td>
</tr>
<tr>
<td>3</td>
</tr>
<tr>
<td>4</td>
</tr>
</tbody>
</table>
</body>
</html>
| JQuery 테이블 tr striping (0) | 2008/05/27 |
|---|---|
| 부모창의 부모창을 제어하기 (0) | 2008/04/25 |
| 브라우저 창의 크기 구하기 (0) | 2008/02/21 |
<head>
<base target="_self" />
</head>
| modal 에서 submit (0) | 2008/05/18 |
|---|