인쇄 문제 좀 봐주세요

인쇄 문제 좀 봐주세요

QA

인쇄 문제 좀 봐주세요

본문

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

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

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


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

답변을 작성하시기 전에 로그인 해주세요.
전체 2,044
QA 내용 검색
filter #css ×

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT