当页面刷新或第一次在Chrome中打开时;当您要打印时,背景图像会消失。如何使打印背景永久显示
如果选择了“使用ablonlu打印”,则会在背景中添加一张图片。否则,它不会。x1c 0d1x的数据
<div id="test" class="visible-print"></div>
@if (isFiligran == true)
{
<script>
$("#test").addClass("backgroundd")
</script>
}
.backgroundd {
/*background-color:#ccc;*/
background-image: url('../../../../Content/Image/selcuklu-yildizi.jpg') !important;
position: fixed !important;
bottom: 0 !important;
top: 0 !important;
height: 100%!important;
width: 100%!important;
-webkit-print-color-adjust: exact !important;
visibility:visible;
}
.backgroundtransparent{
background-color: rgba(255,255,255,0.9) !important;
position:fixed !important;
background-size:contain !important;
top:72px !important;
height:calc(100% - 144px)!important;
width: 101%!important;
-webkit-print-color-adjust: exact !important;
visibility:visible;
}
@media print {
.backgroundtransparent {
display: block !important;
-webkit-print-color-adjust: exact !important;
}
.backgroundd {
display: block !important;
-webkit-print-color-adjust: exact !important;
}
}
字符串
的
的
1条答案
按热度按时间7rtdyuoh1#
的数据
右侧的这些设置在浏览器设置中可用,它们已经注册。尽管选中了“背景图形”,但它不会在第一次读取时执行