Measurement units specify the units of measure of a quantity. These are typically used for length measurement but may also be used for time measurement in aural style sheet properties.
The units include the following:
| Unit | Description |
|---|---|
| # | A hash precedes hex color triplet values. |
| % | A percentage of the containing element's value. |
| cm | Absolute measure of a centimeter. |
| deg | A value used for angular positioning of sound sources. |
| em | A floating point value indicating a fractional portion of the length of an em-dash in the current font. |
| ex | A floating point value used to multiply the height of a small x in the current font. |
| Hz | A frequency value for aural style sheets. |
| in | Absolute measure of an inch. |
| kHz | A frequency value for aural style sheets. |
| mm | Absolute measure of a millimeter. |
| ms | A value in milli-seconds (used for aural style durations). |
| pc | Absolute measure of a pica. |
| pi | Absolute measure of a pica (possibly a misprint in some documentation). |
| pt | Absolute measure using a font point size. |
| px | An integer value measured in pixels on the screen. |
| s | A value in seconds (used for aural style durations). |
Measurement units referring to a spatial distance on the page are sometimes called Length units.
| Prev | Home | Next |
| MAYSCRIPT | Up | MediaList object |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. | ||