HOME 개발팁 웹페이지 부분 인쇄 할때 object

프로그램 작업하다 좋은 팁, 정보, 테스트를 기록하는 곳입니다.


HTML&CSS | 웹페이지 부분 인쇄 할때 object

페이지 정보

작성자 굿스웹 작성일19-01-09 17:03 조회1,620회 댓글0건

본문

<script language="javascript">

function printWindow() {
window.onbeforeprint = beforePrint;
window.onafterprint = afterPrint;
factory.printing.header = "" //윗쪽타이틀
factory.printing.footer = "" //아랫쪽타이틀
factory.printing.portrait = true //인쇄레이아웃설정, 가로(false), 세로(true)
factory.printing.leftMargin = 2.0//왼쪽여백
factory.printing.topMargin = 2.0//윗쪽여백
factory.printing.rightMargin = 2.0 //오른쪽여백
factory.printing.bottomMargin = 2.0 //아랫쪽여백
//factory.printing.Preview(); //인쇄미리보기
factory.printing.Print(false, window) //print with prompt
}

function beforePrint() {
noPrint.style.display = "none";
}

function afterPrint() {
noPrint.style.display = "block";
}

</script>

<div id=noPrint>
출력이 안되는 영역
</div>


<object id=factory viewastext style="display:none" classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814" codebase="./ScriptX.cab#Version=6,2,433,14"></object>

[주소복사] https://www.goodsweb.kr/?u=D41SSyN
SNS 알리기
핀터레스트
텔레그램로
블로그로
카카오스토리
카톡 공유

관련 블로그
로딩중


4명  IP : 3.142.♡.33
001 3.♡.42.33 화면 확대기 기능 - 개발팁
(/bbs/board.php?bo_table=tip&wr_id=102&sca=HTML%26CSS&page=2)
002 192.♡.15.34 공지사항
(/bbs/board.php?bo_table=note&sca=%EA%B0%9C%EB%B0%9C%EB%89%B4%EC%8A%A4&sfl=mb_id,1&stx=rugtsdv176)
003 40.♡.167.59 전체검색 결과
(/bbs/search.php?sfl=wr_subject%7C%7Cwr_content&sop=and&stx=2023)
004 222.♡.104.224 굿스웹 - 홈페이지 유지보수 관리
(/)

접속자
  • 오늘 : 299
  • 어제 : 296
  • 최대 : 874
  • 전체 : 407,948

검색로봇(Robots) 최근 방문시간
  • NAVER : 11시간 전
  • GOOGLE : 1일 전
  • BING : 3일 전
  • DAUM : 5일 전

ETH : 0x8abf3B748ab78828AE07685e4fd53d1a606f18D3



페이스북 네이버 블로그 굿스웹 쇼핑몰 네이버 카페 굿스웹 트위터 굿스웹 티스토리 Google Play