|
1 | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
2 | 2 | <html lang="en"> |
3 | | -<!-- $Id: media.src,v 2.4 1998-02-13 18:17:34 ijacobs Exp $ --> |
| 3 | +<!-- $Id: media.src,v 2.5 1998-02-17 00:28:56 ijacobs Exp $ --> |
4 | 4 | <HEAD> |
5 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
6 | 6 | <TITLE>Media types</TITLE> |
@@ -97,12 +97,30 @@ sheet:</P> |
97 | 97 | } |
98 | 98 | </pre> |
99 | 99 |
|
100 | | -<H3>The media-dependent @import rule</h3> |
| 100 | +<H3><a name="at-import">The @import rule</a></h3> |
| 101 | + |
| 102 | +<P>The <span class="index-def" |
| 103 | +title="@import"><dfn>'@import'</dfn></span> rule allows users to embed |
| 104 | +style sheets in other style sheets. The '@import' keyword must be |
| 105 | +followed by the name of the style sheet to include. Any @import rules |
| 106 | +must precede all rule sets in a style sheet (see the section on <a |
| 107 | +href="syndata.html#at-rules">at-rules</a> for more information). |
| 108 | + |
| 109 | +<div class="example"><P> |
| 110 | +Both of these import rules are legal; the |
| 111 | +first one illustrates that the "url()" syntax may be dropped in an |
| 112 | +@import rule:</p> |
| 113 | + |
| 114 | +<PRE> |
| 115 | + @import "mystyle.css"; |
| 116 | + @import url(herstyle.css); |
| 117 | +</PRE> |
| 118 | +</div> |
101 | 119 |
|
102 | 120 | <p>So that user agents can avoid retrieving resources for unsupported |
103 | 121 | media types, authors may specify media-dependent <span |
104 | 122 | class="index-inst" title="@import"><a |
105 | | -href="cascade.html">@import</a></span> rules. These <span |
| 123 | +href="syndata.html">@import</a></span> rules. These <span |
106 | 124 | class="index-def" title="conditional import|media-dependent |
107 | 125 | import">conditional imports</span> specify comma-separated media types |
108 | 126 | after the URI. |
|
0 commit comments