this text should be none when printing . if the section1 is none in screen.
var vue_det = new Vue({
el: '#intro',
data: {
timestamp: ''
},
created() {
},
methods: {
printWindow() {
const curURL = document.location.href;
history.replaceState(history.state, '', '/');
const originalTitle = document.title;
document.title = '. ';
window.print();
document.title = originalTitle;
history.replaceState(history.state, '', curURL);
},
computed: {
noprint() {
const printicon = document.getElementById('printReport_AId');
if (printicon.style.display === 'none') {
return true;
}
return false;
},
}
}
});
.non-print-css {
// i have to set the display none for logo when its printed.
}
< /code>
Я имею два класса div < /p>
[*] section1 < /li>
li>logo.
< /ol>
Условие: < /p>
- Я печатаю страницу, логотип
не должен печатать.
Мне нужно правильное решение либо в CSS, либо в JS
Подробнее здесь: https://stackoverflow.com/questions/573 ... ing-css-or
Мобильная версия