웹프로그래밍/javascript&jquery&css

지정영역 인쇄제한 css

하요_ 2019. 3. 28. 08:57

window.print()로 인쇄 시 지정한 영역을 제외하고 출력하는 방법입니다.

 

 

1
2
3
<style type="text/css" media="print">
    .noprint{display:none;}
</style>
http://colorscripter.com/info#e" target="_blank" style="color: white;">cs

 

 

 

 

요렇게 style 작성 후 출력할 필요가 없는 태그에 class="noprint"를 작성해주시면 됩니다.