Created
November 6, 2017 12:59
-
-
Save toshimasa-nanaki/b7729d8ed13cc53f30fa68ac4f5b666c to your computer and use it in GitHub Desktop.
don't use printThis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>テスト</title> | |
</head> | |
<body> | |
<main> | |
<article> | |
<div style="height:100px; width:300px; overflow-y:scroll;"> | |
<table border="1" id="tb"> | |
<thead> | |
<th>ヘッダー1</th> | |
<th>ヘッダー2</th> | |
<th>ヘッダー3</th> | |
<thead> | |
<tbody> | |
<tr> | |
<td>テストセル11</td> | |
<td>テストセル12</td> | |
<td>テストセル13</td> | |
</tr> | |
<tr> | |
<td>テストセル21</td> | |
<td>テストセル22</td> | |
<td>テストセル23</td> | |
</tr> | |
<tr> | |
<td>テストセル31</td> | |
<td>テストセル32</td> | |
<td>テストセル33</td> | |
</tr> | |
<tr> | |
<td>テストセル41</td> | |
<td>テストセル42</td> | |
<td>テストセル43</td> | |
</tr> | |
<tr> | |
<td>最後のセル1</td> | |
<td>最後のセル2</td> | |
<td>最後のセル3</td> | |
</tr> | |
</tbody> | |
</table> | |
</div> | |
<input type="button" onclick="window.print();" value="印刷ボタン"> | |
</article> | |
</main> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment