인쇄 문제 좀 봐주세요

인쇄 문제 좀 봐주세요

QA

인쇄 문제 좀 봐주세요

답변 2

본문

일반 글읽기에서는 정상적으로 잘 보이는데, 인쇄를 하려면 아래 캡쳐처럼

세로로 긴 이미지가 버튼 모음과 댓글목록과 겹쳐서 인쇄가 됩니다.

텍스트가 세로로 길때는 겹치지 않고 잘 인쇄가 됩니다.


$(".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
        });
    })

 

2083642585_1680928471.0704.jpg

이 질문에 댓글 쓰기 :

답변 2

댓글 작성 부분을 인쇄금지 처리하세요.
print.js 플러그인을 쓰시는것도 대안 입니다.

http://gnujava.com/board/article_view.jsp?board_no=11&article_no=6228

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
  • 질문이 없습니다.
전체 0
© SIRSOFT
현재 페이지 제일 처음으로