[CSS] @media print & background-color
:salut:
Voila la page fautive:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
<html>
<head>
<style>
p {
background-color: #FF0000;
font-size: 12px;
}
@media print {
p {
background-color: #0000FF;
font-size: 24px;
}
}
</style>
<title>blabla</title>
</head>
<body>
<p>test</p>
</body>
</html> |
Le problème: la page dans un navigateur a l'aspect attendu, mais l'impression se fait sans background-color, malgré celle spécifiée dans @media print (testé sous IE/Firefox/Opera).
D'ou la question: Est-il possible en @media print de spécifier une couleur de fond pour l'impression? Et si oui, comment? Est-ce une recommandation officielle que de supprimer toutes les couleurs de fond en cas d'impression?
:merci: