2013-06-27 38 views
0

我更改了文本的背景顏色,它在側面編輯器中工作。但是,當打印背景丟失。我該如何解決它。打印時不應用文本背景

在此先感謝。

+0

[Stylesheet for printing,background-color ignored]可能出現重複(http://stackoverflow.com/questions/10139593/stylesheet-for-printing-background-color-ignored) – Quentin

回答

0

如果使用谷歌瀏覽器,它在打印時有一個選項可以刪除這兩個背景和圖像的默認值啓用。檢查打印預覽頁面並禁用它。

編輯:
根據.. https://stackoverflow.com/a/11296931/1040870
另一次嘗試使用CSS來讓WebKit瀏覽器打印:

-webkit-print-color-adjust: exact; 

它可以在我的測試;並會覆蓋我之前提到的選項。