https://github.com/jasonday/printThis/blob/master/printThis.js
깔끔하고 사용하기 편리하네요..
별도의 css를 추가할 수 있는등 간편하게 사용 할 수 있습니다.
댓글 5개
흠... dom의 id로 지정한 부분을 간단한 함수로 프린터를 시켜주는 녀석입니다. ^^
github상단에 보면
/*
* printThis v1.5
* @desc Printing plug-in for jQuery
* @author Jason Day
*
* Resources (based on) :
* jPrintArea: http://plugins.jquery.com/project/jPrintArea
* jqPrint: https://github.com/permanenttourist/jquery.jqprint
* Ben Nadal: http://www.bennadel.com/blog/1591-Ask-Ben-Print-Part-Of-A-Web-Page-With-jQuery.htm
*
* Licensed under the MIT licence:
* http://www.opensource.org/licenses/mit-license.php
*
* (c) Jason Day 2015
*
* Usage:
*
* $("#mySelector").printThis({
* debug: false, * show the iframe for debugging
* importCSS: true, * import page CSS
* importStyle: false, * import style tags
* printContainer: true, * grab outer container as well as the contents of the selector
* loadCSS: "path/to/my.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
* formValues: true * preserve input/form values
* });
*
* Notes:
* - the loadCSS will load additional css (with or without @media print) into the iframe, adjusting layout
*/
이렇게 사용법이 ... 적혀있습니다.
github상단에 보면
/*
* printThis v1.5
* @desc Printing plug-in for jQuery
* @author Jason Day
*
* Resources (based on) :
* jPrintArea: http://plugins.jquery.com/project/jPrintArea
* jqPrint: https://github.com/permanenttourist/jquery.jqprint
* Ben Nadal: http://www.bennadel.com/blog/1591-Ask-Ben-Print-Part-Of-A-Web-Page-With-jQuery.htm
*
* Licensed under the MIT licence:
* http://www.opensource.org/licenses/mit-license.php
*
* (c) Jason Day 2015
*
* Usage:
*
* $("#mySelector").printThis({
* debug: false, * show the iframe for debugging
* importCSS: true, * import page CSS
* importStyle: false, * import style tags
* printContainer: true, * grab outer container as well as the contents of the selector
* loadCSS: "path/to/my.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
* formValues: true * preserve input/form values
* });
*
* Notes:
* - the loadCSS will load additional css (with or without @media print) into the iframe, adjusting layout
*/
이렇게 사용법이 ... 적혀있습니다.
게시글 목록
| 번호 | 제목 |
|---|---|
| 18013 | |
| 18012 | |
| 18011 | |
| 18010 |
JavaScript
콤보스타일 메뉴 입니다.
|
| 18009 |
JavaScript
쿠키를 이용한 레이어 공지창 입니다.
|
| 18008 |
JavaScript
효과있는 텍스트 틱커 입니다.
|
| 18007 | |
| 18006 |
PHP
HTTP 인증 하기 입니다.
|
| 18005 |
JavaScript
외부 문서 불러오기 입니다.
|
| 18004 |
JavaScript
지정한 날짜까지 New 이미지를 띄워주기 입니다.
|
| 18003 | |
| 18002 |
JavaScript
메일 주소 검사하기 체크박스 입니다.
|
| 18001 |
JavaScript
무단링크 금지하기 입니다.
|
| 18000 | |
| 17999 |
MySQL
DB백업 및 복원
|
| 17998 |
JavaScript
페이지가 다른 사이트의 프레임에 갇히는 것을 막기 입니다.
|
| 17997 | |
| 17996 | |
| 17995 |
jQuery
input text 대문자만 받는 Jquery
|
| 17994 | |
| 17993 |
JavaScript
이미지 업로드와 미리보기 입니다.
|
| 17992 |
JavaScript
배경음악 랜덤 재생 하기 입니다.
|
| 17991 |
JavaScript
css 지원 여부 확인해서 다른 페이지로 이동하기 입니다.
|
| 17990 |
JavaScript
하부메뉴가 보였다가 숨겨졌다 하는 토글버튼 입니다.
|
| 17989 |
JavaScript
개별 페이지에 인덱스로 거쳐 들어오게 하기 입니다.
|
| 17988 |
JavaScript
랜덤으로 이미지 출력 되기 입니다.
|
| 17987 |
JavaScript
사용자 해상도 알아내기 입니다.
|
| 17986 |
JavaScript
붙여넣기 금지하기 입니다.
|
| 17985 |
MySQL
대소문자 데이터 조회하기
|
| 17984 |
JavaScript
퇴장시 팝업창 한번한 띄우기 입니다.
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기