CSS At-Rules
A version of this page is also available for
4/8/2010
This topic summarizes the Cascading Style Sheet "at rules".
Description
Structure | Possible Values | Windows Mobile | CSS Mobile | WAP CSS | CSS1 | CSS2 | CSS3 | Comments |
---|---|---|---|---|---|---|---|---|
@charset |
|
? |
Yes |
Yes |
No |
Yes |
No |
Sets the character set to be used. |
@import |
|
Yes |
Yes |
Yes |
No |
Yes |
No |
Imports style rules from other style sheets. |
|
<uri> |
Yes |
Yes |
Yes |
No |
Yes |
No |
|
|
url(uri) |
Yes |
Yes |
Yes |
No |
Yes |
No |
|
|
(<uri> | url(uri)) <media type> |
Yes |
No |
No |
No |
Yes |
No |
|
media types |
|
Yes |
Yes |
Yes |
No |
Yes |
No |
CSS2 requires to support one or more media types. |
|
all |
Yes |
Yes |
Yes |
No |
Yes |
No |
|
|
aural |
No |
No |
No |
No |
No |
No |
|
|
braille |
No |
No |
No |
No |
No |
No |
|
|
embossed |
No |
No |
No |
No |
No |
No |
|
|
handheld |
Yes |
Yes |
Yes |
No |
Yes |
No |
|
|
No |
No |
No |
No |
No |
No |
|
|
|
projection |
No |
No |
No |
No |
No |
No |
|
|
screen |
Yes |
No |
No |
No |
Yes |
No |
|
|
tty |
No |
No |
No |
No |
No |
No |
|
|
tv |
No |
No |
No |
No |
No |
No |
|
@media |
|
Yes |
Yes |
Yes |
No |
Yes |
No |
This specifies which style rules should be used with each of the supported media types. |
|
all |
Yes |
Yes |
Yes |
No |
Yes |
No |
|
|
aural |
No |
No |
No |
No |
No |
No |
|
|
braille |
No |
No |
No |
No |
No |
No |
|
|
embossed |
No |
No |
No |
No |
No |
No |
|
|
handheld |
Yes |
Yes |
Yes |
No |
Yes |
No |
|
|
No |
No |
No |
No |
No |
No |
|
|
|
projection |
No |
No |
No |
No |
No |
No |
|
|
screen |
Yes |
No |
No |
No |
Yes |
No |
|
|
tty |
No |
No |
No |
No |
No |
No |
|
|
tv |
No |
No |
No |
No |
No |
No |
|