내 사이트에서 보고서를 인쇄하는 페이지가 있고 show grid 결과에 대한 표를 설정합니다.인쇄 페이지의 배경색을 표시
내 문제는 배경색이 th
입니다.이 배경은 인쇄하기 전에 페이지에 표시되지만, 인쇄 할 때는 th
배경이 표시되지 않습니다.
내 CSS 코드 : -이 페이지를 인쇄 할 때
@media print {
.head th {
background: #CCCCCC;
background: -webkit-gradient(linear, left top, left bottom, from(#CCCCCC), to(#CCCCCC));
background: -moz-linear-gradient(top, #CCCCCC, #CCCCCC);
border: 1px solid #000000;
font-size: 16px;
text-align: center;
font-weight:bold;
padding:10px;
}
}
.wrap{
width: auto;
background:#fff;
word-wrap: break-word;
margin:30px;
}
th {
background: #CCCCCC;
background: -webkit-gradient(linear, left top, left bottom, from(#CCCCCC), to(#CCCCCC));
background: -moz-linear-gradient(top, #CCCCCC, #CCCCCC);
border: 1px solid #000000;
font-size: 16px;
text-align: center;
font-weight:bold;
padding:10px;
}
는 어떻게
th
backgound에 표시 할 수 있습니다.
경제 정상적인 동작 :
브라우저에 배경색 및 이미지 인쇄 옵션이 선택되어 있는지 확인하십시오. – BK004