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

前端 未结 6 1329
礼貌的吻别
礼貌的吻别 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条回答
  •  渐次进展
    2021-01-17 13:26

    You don't need to compromise your web page to make it look pretty printed. Simply define a print.css that makes the printed view suit your needs.

    # index.html
    
       
    
    
    # print.css
    .shadow {
      text-shadow: none;
    }
    

    For more, Smashing Magazine has a helpful article on How To Set Up A Print Style Sheet.

提交回复
热议问题