Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.arcetri.astro.it/irlab/doc/library/javascript/clientreference/style.htm
Дата изменения: Thu Oct 7 13:13:34 1999 Дата индексирования: Sat Dec 22 14:18:31 2007 Кодировка: Поисковые слова: п п п п п п п п п п п |
document
object:
Style
object lets you implement dynamic HTML style sheets in JavaScript. The methods and properties of the Style object implement the cascading style sheet style properties of HTML in JavaScript.
For a complete description of style sheets, see Dynamic HTML in Netscape Communicator.
Method |
Description
|
|
| |
---|
watch
and unwatch
methods from Object
.
styleObject.align = {left | right | none}
styleObject |
align
with textAlign
, which specifies the alignment of the content of text elements.
The align
property is a reflection of the cascading style sheet float
property.
styleObject.backgroundColor = colorValue
styleObject | |
colorValue | A string evaluating to a color value, as described in Appendix B, "Color Values." |
backgroundColor
property is a reflection of the cascading style sheet background-color
property.
styleObject.backgroundImage = url
styleObject | |
url | A string evaluating to either a full URL or a partial URL relative to the source of the style sheet. |
backgroundImage
property is a reflection of the cascading style sheet background-image
property.
styleObject.borderBottomWidth = length
styleObject | |
length |
A string evaluating to a size followed by a unit of measurement; for example, |
borderBottomWidth
property is a reflection of the cascading style sheet border-bottom-width
property.
Style.borderLeftWidth
, Style.borderRightWidth
, Style.borderTopWidth
, Style.borderWidths
styleObject.borderColor = {none | colorValue}
styleObject | |
colorValue | A string evaluating to a color value, as described in Appendix B, "Color Values." |
borderColor
property is a reflection of the cascading style sheet border-color
property.
styleObject.borderLeftWidth = length
styleObject | |
length |
A string evaluating to a size followed by a unit of measurement; for example, |
borderLeftWidth
property is a reflection of the cascading style sheet border-left-width
property.
Style.borderBottomWidth
, Style.borderRightWidth
, Style.borderTopWidth
, Style.borderWidths
styleObject.borderRightWidth = length
styleObject | |
length |
A string evaluating to a size followed by a unit of measurement; for example, |
borderRightWidth
property is a reflection of the cascading style sheet border-right-width
property.
Style.borderBottomWidth
, Style.borderLeftWidth
, Style.borderTopWidth
, Style.borderWidths
styleObject.borderStyle = styleType
styleObject | |
styleType |
borderStyle
property is a reflection of the cascading style sheet border-style
property.
styleObject.borderTopWidth = length
styleObject | |
length |
A string evaluating to a size followed by a unit of measurement; for example, |
borderTopWidth
property is a reflection of the cascading style sheet border-top-width
property.
Style.borderBottomWidth
, Style.borderLeftWidth
, Style.borderRightWidth
, Style.borderWidths
borderWidths(top, right, bottom, left)
borderWidths
method is a convenience shortcut for setting all the border width properties.
Style.borderBottomWidth
, Style.borderLeftWidth
, Style.borderRightWidth
, Style.borderTopWidth
styleObject.clear = {left | right | both | none}
styleObject |
clear
property is a reflection of the cascading style sheet clear
property.
styleObject.color = colorValue