인쇄할 경우. 질문

TABLE 을 DIV 폼으로 감싸서 인쇄를 할려고 합니다.

테이블 안에 체크 박스가 있는데 이걸 출력 안하게 하는 방법이 있을까요?
|

댓글 4개

@media print로 css에서 프린트 할 영역만 지정해서 하시면 됩니다
네이버에 검색해 보시면 관련 내용 있을거에요
<style type="text/css">
중략...


@media print{

#no_print{display: none;}

#no1_print{display: none;}

#footer{display: none;}

}

</style>

중략....

<!-- 리스트 출력 함수 삽입 부부 -->
<div id='print_table' >
<!-- 리스트 출력 함수 삽입 부부 -->


<a class="style1" >&nbsp;&nbsp;우편물발송대장</a>
<table cellspacing="0" cellpadding="0" class="board_list" border=0>

<? if ($is_good) { ?><? } ?>
<? if ($is_nogood) { ?><? } ?>

<tr>

<? if ($is_checkbox) { ?>
<div id='no_print'>
<th width=40>

<input onclick="if (this.checked) all_checked(true); else all_checked(false);" type=checkbox>

</th>
</div>
<?}?>

이렇게 하는게 맞지 않나요>?
인쇄하는 스크립트 함수 부분에서 숨겨버리면 됩니다
아래 코드를 넣으세요
$('input').css({ 'visibility' : 'hidden' });
print.html 에 위 소스를 넣으니 아무것도 출력이 되지가 않네요.. ㅠ.ㅠ

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기
🐛 버그신고