Hallo,
ich habe ein Problem bei der Darstellung durch CSS:
Gebe ich in @media print an, dass er mit @page { size:landscape; } die Seite im Querformat ausdrucken soll, so macht er dies nicht. Er druckt weiterhin im Hochformat. (Natülich könnte man es per Hand einstellen, aber es soll automatisch gehen)
Ein weiterer Punkt ist, dass ich auch beim Ausdrucken die Farbe weiß eingestellt habe. Leider stellt er mir die weiße Schrift grau dar. Die ist auf einem weißen Blatt auch OK, aber beime Schrfit befindetr sich vor einen Bild, so dass man die graue Schrift nicht sieht. Kann man die weiße Schrift irgendwie anders erzwingen?
Viele Grüße
Michael
Hier der Code:
<style type="text/css">
<!--
@media print
{
@page { size:landscape; }
BODY { font-family: Arial,Helvetica,Geneva,Sans-serif,sans-serif; background-color: rgb(0,0,0); background-image: url("./background.gif");}
A:active { color: rgb(255,255,255); font-weight: bold;}
A:link { color: rgb(255,255,255); font-weight: bold;}
A:visited { color: rgb(255,255,255); font-weight: bold;}
A { color: rgb(255,255,255); font-weight: bold;}
H4 { font-family: Arial,Helvetica,Geneva,Sans-serif,sans-serif; font-size: 11px; color: rgb(8,55,112); font-weight: normal; font-style: normal;}
.TextNavBar { font-size: xx-small;}
H5 { font-family: Arial,Helvetica,Geneva,Sans-serif,sans-serif; font-size: 16px; color: rgb(255,255,255); font-weight: bold;}
H6 { font-family: Arial,Helvetica,Geneva,Sans-serif,sans-serif; font-size: 13px; color: rgb(255,255,255); font-weight: bold;}
A:hover { color: rgb(255,255,255); font-weight: normal; font-style: normal;}
}
@media screen
{
BODY { font-family: Arial,Helvetica,Geneva,Sans-serif,sans-serif; background-color: rgb(255,255,255); background-image: url("./background.gif");}
A:active { color: rgb(255,255,255); font-weight: bold;}
A:link { color: rgb(255,255,255); font-weight: bold;}
A:visited { color: rgb(255,255,255); font-weight: bold;}
A { color: rgb(255,255,255); font-weight: bold;}
H4 { font-family: Arial,Helvetica,Geneva,Sans-serif,sans-serif; font-size: 11px; color: rgb(8,55,112); font-weight: normal; font-style: normal;}
.TextNavBar { font-size: xx-small;}
H5 { font-family: Arial,Helvetica,Geneva,Sans-serif,sans-serif; font-size: 16px; color: rgb(255,255,255); font-weight: bold;}
H6 { font-family: Arial,Helvetica,Geneva,Sans-serif,sans-serif; font-size: 13px; color: rgb(255,255,255); font-weight: bold;}
A:hover { color: rgb(255,255,255); font-weight: normal; font-style: normal;}
}
-->
</style>