text-shadow and box-shadow while printing (Chrome)

前端 未结 6 1342
礼貌的吻别
礼貌的吻别 2021-01-17 12:44

I\'m making some printable calendar website using HTML, CSS and JS.

Unfortunately I cannot use CSS property called text-shadow, because shadow behind te

6条回答
  •  猫巷女王i
    2021-01-17 13:17

    I used all the possible solutions to this but the border shadow(with stepped gradient) would show up on my page, but not when I do a Ctrl+P on the page and either- print the page or save as PDF. I even used-

    -webkit-print-color-adjust:exact;
    -webkit-filter:opacity(1);
    

    I do the same Ctrl+P on this page- https://css-tricks.com/examples/BodyBorder/kottke.php and it works fine.

    Solution: I had to remove the bootstrap.css included at the top of my page for the border shadow to show up on my PDF, or when I print the page.

    
    

提交回复
热议问题