나는 HTML 페이지를 인쇄하려고하는데 도움이 필요합니다. 인쇄 할 때 모든 페이지에 머리말과 꼬리말을 넣고 싶습니다.모든 페이지에 머리글과 바닥 글이있는 html 페이지를 인쇄하는 방법은 무엇입니까?
이 내 현재 코드
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" media="all" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<style media="screen">
.header{
top: 0;
width: 100%;
height: 100px;
height: 100px;
}
.content{
}
.footer{
padding-top: 50px;
width: 100%;
height: 100px;
}
</style>
<div class="header">
header
</div>
<div class="content">
<table>
<tr><td>dfdsfsdfsdf start</td></tr>
<tr><td>dfdsfsdfsdf</td></tr>
<tr><td>dfdsfsdfsdf</td></tr>
<tr><td>dfdsfsdfsdf end</td></tr>
<!-- there will be around 1000 record of <tr><td></td></tr>-->
</table>
</div>
<div class="footer">
footer
</div>
</body>
</html>
현재 헤더는 두 번째 페이지에없는 및 바닥 글이 두 번째 페이지로 이동하고 첫 번째 페이지에 대한 글이 없습니다. 그래서 은행 문 또는 모든 페이지에 머리글과 바닥 글 테이블의 값이 다른 문처럼 보일 수 있도록 내가 할 수있는 방법을 모든 페이지
Here is the image which i m getting currently Here is the image which i m getting currently의 중앙에 남아
알다시피, 모든 페이지에 추가 하시겠습니까? –
테이블이
가능한 복제본 [https://stackoverflow.com/questions/468881/print-div-id-printarea-div-only](https://stackoverflow.com/questions/468881/print-div) -id-printarea-div-only) –