Is it possible to use CSS media queries for hiding input boxes but showing their values when printing?
-
24-10-2019 - |
문제
Is it possible to use CSS media queries for hiding input boxes but showing their values when printing?
<input type="text" value="Print this value but not the input box."/>
해결책
Try giving the input boxes transparent backgrounds and borders:
@media print {
input[type="text"] {
display: inline;
color: #000;
background: transparent;
border: 0;
}
}
제휴하지 않습니다 StackOverflow