nej, inte direkt i ett style attribut: Ok ... skit också .. det hade varit snyggt i min lösning. Men bara att rätta sig efter reglerna. "@media print" direkt i en style="" ?
Går det att lägga till information i en style som bara syns vid utskrift?? @media printSv: "@media print" direkt i en style="" ?
citat CSS 2 spec (http://www.w3.org/TR/REC-CSS2/media.html):
7.2 Specifying media-dependent style sheets
There are currently two ways to specify media dependencies for style sheets:
* Specify the target medium from a style sheet with the @media or @import at-rules.
Example(s):
@import url("loudvoice.css") aural;
@media print {
/* style sheet for print goes here */
}
* Specify the target medium within the document language. For example, in HTML 4.0 ([HTML40]), the "media" attribute on the LINK element specifies the target media of an external style sheet:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<HTML>
<HEAD>
<TITLE>Link to a target medium</TITLE>
<LINK rel="stylesheet" type="text/css"
media="print, handheld" href="foo.css">
</HEAD>
<BODY>
<P>The body...
</BODY>
</HTML>
Sv:"@media print" direkt i en style="" ?