티스토리 뷰
@media print, screen{
*{
margin: 0;
padding: 0;
font-family: 'Noto Sans KR', sans-serif;
color: #000;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
html, body{
width: 827px;
margin: 0;
font-family: 'Noto Sans KR', sans-serif;
color: #000;
-webkit-box-sizing: border-box;
box-sizing: border-box;
page-break-before: always;
page-break-after: always;
page-break-inside: auto;
}
@page{
size: auto;
width: 827px;
margin: 0;
margin: 10mm 0;
/* height: 29.7cm; */
}
@page:first{
margin: 0;
}
.page{
width: 100%;
min-height: 29.7cm;
background: url('/include/img/sub/bg_print_bg_test.png') !important;
background-repeat: repeat-y;
-webkit-print-color-adjust: exact !important;
print-color-adjust: exact !important;
color-adjust: exact !important;
page-break-before: always;
page-break-after: always;
page-break-inside: auto;
}
.print-wrap{
position: relative;
width: 827px;
min-height: 29.7cm;
/* width: 827px;
height: 1169px; */
margin: 10px auto;
font-family: 'Noto Sans KR', sans-serif;
page-break-before: always;
page-break-after: always;
}
}
*참고
http://goodthing.me/saucetip/5467
'WebPublisher > CSS' 카테고리의 다른 글
[css] css 애니메이션 성능 개선 (will-change) (0) | 2022.11.17 |
---|---|
[html] transform 사용 시 z-index 설정 (0) | 2022.11.17 |
[css] 유튜브 영역 반응형으로 잡기 (0) | 2022.09.22 |
[css] display: table 시 iOS에서 레이아웃 깨짐 현상 (0) | 2022.08.22 |
[css] table caption (iOS에서 레이아웃 깨짐 문제) (0) | 2022.08.09 |
공지사항