인쇄할 경우. 질문 정보
인쇄할 경우. 질문본문
TABLE 을 DIV 폼으로 감싸서 인쇄를 할려고 합니다.
테이블 안에 체크 박스가 있는데 이걸 출력 안하게 하는 방법이 있을까요?
테이블 안에 체크 박스가 있는데 이걸 출력 안하게 하는 방법이 있을까요?
댓글 전체
@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" > 우편물발송대장</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>
<?}?>
이렇게 하는게 맞지 않나요>?
중략...
@media print{
#no_print{display: none;}
#no1_print{display: none;}
#footer{display: none;}
}
</style>
중략....
<!-- 리스트 출력 함수 삽입 부부 -->
<div id='print_table' >
<!-- 리스트 출력 함수 삽입 부부 -->
<a class="style1" > 우편물발송대장</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' });
아래 코드를 넣으세요
$('input').css({ 'visibility' : 'hidden' });
print.html 에 위 소스를 넣으니 아무것도 출력이 되지가 않네요.. ㅠ.ㅠ