인쇄 문제 좀 봐주세요 채택완료
고기조아
2년 전
조회 1,971
일반 글읽기에서는 정상적으로 잘 보이는데, 인쇄를 하려면 아래 캡쳐처럼
세로로 긴 이미지가 버튼 모음과 댓글목록과 겹쳐서 인쇄가 됩니다.
텍스트가 세로로 길때는 겹치지 않고 잘 인쇄가 됩니다.
</p>
<p>$(".btn_print").click(function() {
$(".content_block").printThis({
debug: false, // show the iframe for debugging
importCSS: true, // import page CSS
importStyle: true, // import style tags
printContainer: true, // grab outer container as well as the contents of the selector
loadCSS: ["<?php echo G5_THEME_CSS_URL ?>/common.css", "<?php echo G5_THEME_CSS_URL ?>/style.css", "<?php echo G5_THEME_CSS_URL ?>/mobile.css"], // path to additional css file - us an array [] for multiple
pageTitle: "", // add title to print page
removeInline: false, // remove all inline styles from print elements
printDelay: 333, // variable print delay
header: null, // prefix to html
footer: null, // postfix to html
base: false, // preserve the BASE tag, or accept a string for the URL
formValues: true, // preserve input/form values
canvas: false, // copy canvas elements (experimental)
doctypeString: '...', // enter a different doctype for older markup
removeScripts: false // remove script tags from print content
});
})</p>
<p>

댓글을 작성하려면 로그인이 필요합니다.
답변 2개
채택된 답변
+20 포인트
2년 전
댓글 작성 부분을 인쇄금지 처리하세요. print.js 플러그인을 쓰시는것도 대안 입니다.
http://gnujava.com/board/article_view.jsp?board_no=11&article_no=6228
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인