<!DOCTYPE html>
<html>
<head>
<style>
table, th, td {
    border: 1px solid black;
}
</style>
</head>
<body>

<table>
  <tr>
    <th>Month</th>
    <th>Savings</th>
    <th>Savings for holiday!</th>
  </tr>
  <tr>
    <td>January</td>
    <td>$100</td>
    <td rowspan="2">$50</td>
  </tr>
  <tr>
    <td>February</td>
    <td>$80</td>
  </tr>
</table>

</body>
</html>

 -------------------------------------------------------------------

Month Savings Savings for holiday!
January $100 $50
February $80

--------------------------------------------------------------------

rowspan은 셀 합치기 를 말한다 2는 row 즉 열 2개를 합치겠다는 의미

'Programming > Java' 카테고리의 다른 글

rowspan  (0) 2016.02.15
onkeypress  (0) 2016.02.15

<!DOCTYPE html>
<html>
<body>

<p>A function is triggered when the user is pressing a key in the input field.</p>

<input type="text" onkeypress="myFunction()">

<script>
function myFunction() {
    alert("You pressed a key inside the input field");
}
</script>

</body>
</html>

------------------------------------------------------------------------

 A function is triggered when the user is pressing a key in the input field.

------------------------------------------------------------------------

프레임 안에 키를 누를때마다 function의 기능이 실행 된다

'Programming > Java' 카테고리의 다른 글

rowspan  (0) 2016.02.15
onkeypress  (0) 2016.02.15

+ Recent posts