EN
Данное содержимое не доступно на вашем языке, используйте версию на английском языке.

defaults object

Programmatically sets default properties on an element behavior.

Members

The defaults object has these types of members:

Properties

The defaults object has these properties.

PropertyAccess typeDescription

accelerator

Sets or retrieves a string that indicates whether the object represents a keyboard shortcut.

background

Specifies up to five separate background properties of an object.

backgroundAttachment

Specifies how the background image (or images) is attached to the object within the document.

backgroundClip

Specifies the background painting area or areas relative to the element's bounding boxes.

backgroundColor

Specifies the color behind the content of the object.

backgroundImage

Specifies the background image or images of the object.

backgroundOrigin

Specifies the positioning area of an element or multiple elements.

backgroundPosition

Specifies the position of the background of the object.

backgroundPositionX

Specifies the x-coordinate of the background-position property.

backgroundPositionY

Specifies the y-coordinate of the background-position property.

backgroundRepeat

Specifies whether and how the background image (or images) is tiled.

backgroundSize

Specifies the size of the background images.

behavior

Sets or retrieves the location of the Dynamic HTML (DHTML) behaviorDHTML Behaviors.

border

Specifies the properties of a border drawn around an object.

borderBottom

Specifies the properties of the bottom border of the object.

borderBottomColor

Specifies the foreground color of the bottom border of an object.

borderBottomLeftRadius

Specifies the radii of the quarter ellipse that defines the shape of the lower-left corner for the outer border edge of the current box.

borderBottomRightRadius

Sets or retrieves one or two values that define the radii of the quarter ellipse that defines the shape of the lower-right corner for the outer border edge of the current box.

borderBottomStyle

Specifies the style of the bottom border of the object.

borderBottomWidth

Specifies the thickness of the bottom border of the object.

borderColor

Specifies the border color of the object.

borderLeft

Specifies the properties of the left border of the object.

borderLeftColor

Specifies the foreground color of the left border of an object.

borderLeftStyle

Sets or retrieves the style of the left border of the object.

borderLeftWidth

Specifies the thickness of the left border of the object.

borderRadius

Specifies the radii of a quarter ellipse that defines the shape of the corners for the outer border edge of the current box.

borderRight

Specifies the properties of the right border of the object.

borderRightColor

Specifies the foreground color of the right border of an object.

borderRightStyle

Specifies the style of the right border of the object.

borderRightWidth

Specifies the thickness of the right border of the object.

borderStyle

Specifies the style of the left, right, top, and bottom borders of the object.

borderTop

Specifies the properties of the top border of the object.

borderTopColor

Specifies the foreground color of the top border of an object.

borderTopLeftRadius

Sets or retrieves one or two values that define the radii of the quarter ellipse that defines the shape of the upper-left corner for the outer border edge of the current box.

borderTopRightRadius

Sets or retrieves one or two values that define the radii of the quarter ellipse that defines the shape of the upper-right corner for the outer border edge of the current box.

borderTopStyle

Specifies the style of the top border of the object.

borderTopWidth

Specifies the thickness of the top border of the object.

borderWidth

Specifies the thicknesses of the left, right, top, and bottom borders of an object.

bottom

Sets or retrieves the bottom position of the object in relation to the bottom of the next positioned object in the document hierarchy.

boxShadow

Specifies one or more set of shadow values that attaches one or more drop shadows to the current box.

canHaveHTML

Retrieves the value indicating whether the object can contain rich HTML markup.

clear

Specifies whether the object allows floating objects on its left side, right side, or both, so that the next text displays past the floating objects.

clip

Read/write

Specifies which part of a positioned object is visible.

color

The foreground color of the text of an object.

constructor

Returns a reference to the constructor of an object.

contentEditable

Sets or retrieves the string that indicates whether the user can edit the content of the object.

cursor

Specifies the type of cursor to display as the mouse pointer moves over the object.

direction

Specifies the reading order of the object.

display

Gets or sets a value that indicates whether and how the object is rendered.

font

Specifies a combination of separate font properties of the object. Alternatively, sets or retrieves one or more of six user-preference fonts.

fontFamily

Specifies the name of the font used for text in the object.

fontSize

Specifies a value that indicates the font size used for text in the object.

fontStretch

Specifies a value that indicates a normal, condensed, or expanded face of a font family.

fontStyle

Specifies the font style of the object as italic, normal, or oblique.

fontVariant

Specifies whether the text of the object is in small capital letters.

fontWeight

Gets the numeric weight of the font of the object.

fontWeight

Specifies the weight of the font of the object.

isMultiLine

Retrieves the value indicating whether the content of the object contains one or more lines.

layoutGrid

Specifies the composite document grid properties that specify the layout of text characters.

layoutGridMode

Specifies whether the text layout grid uses two dimensions.

left

Sets or retrieves the position of the object relative to the left edge of the next positioned object in the document hierarchy.

letterSpacing

Specifies the amount of additional space between letters in the object.

lineHeight

Sets or retrieves the distance between lines in the object.

margin

Sets or retrieves the width of the top, right, bottom, and left margins of the object.

marginBottom

Sets or retrieves the height of the bottom margin of the object.

marginLeft

Sets or retrieves the width of the left margin of the object.

marginRight

Sets or retrieves the width of the right margin of the object.

marginTop

Sets or retrieves the height of the top margin of the object.

msBlockProgression

Specifies the block progression and layout orientation.

msProgressAppearance

Read/write

This property is obsolete. Use animation-name instead.

opacity

Gets or sets a value that specifies object or group opacity in CSS or SVG.

overflow

Sets or retrieves a value indicating how to manage the content of the object when the content exceeds the height or width of the object.

overflowX

Sets or retrieves how to manage the content of the object when the content exceeds the width of the object.

overflowY

Sets or retrieves how to manage the content of the object when the content exceeds the height of the object.

padding

Sets or retrieves the amount of space to insert between the object and its margin or, if there is a border, between the object and its border.

paddingBottom

Sets or retrieves the amount of space to insert between the bottom border of the object and the content.

paddingLeft

Sets or retrieves the amount of space to insert between the left border of the object and the content.

paddingRight

Sets or retrieves the amount of space to insert between the right border of the object and the content.

paddingTop

Sets or retrieves the amount of space to insert between the top border of the object and the content.

pixelBottom

Sets or retrieves the bottom position of the object.

pixelHeight

Sets or retrieves the height of the object.

pixelLeft

Sets or retrieves the left position of the object.

pixelRight

Sets or retrieves the right position of the object.

pixelTop

Sets or retrieves the top position of the object.

pixelWidth

Sets or retrieves the width of the object.

posBottom

Sets or retrieves the bottom position of the object in the units specified by the bottom attribute.

posHeight

Sets or retrieves the height of the object in the units specified by the height attribute.

position

Sets or retrieves the type of positioning used for the object.

posLeft

Sets or retrieves the left position of the object in the units specified by the left attribute.

posRight

Sets or retrieves the right position of the object in the units specified by the right attribute.

posTop

Sets or retrieves the top position of the object in the units specified by the top attribute.

posWidth

Sets or retrieves the width of the object in the units specified by the width attribute.

scrollbar3dLightColor

Specifies the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.

scrollbarArrowColor

Specifies the color of the arrow elements of a scroll arrow.

scrollbarBaseColor

Specifies the base color of the main elements of a scroll bar.

scrollbarDarkShadowColor

Specifies the color of the gutter of a scroll bar.

scrollbarFaceColor

Specifies the color of the scroll box and scroll arrows of a scroll bar.

scrollbarHighlightColor

Specifies the color of the slider tray, and the top and left edges of the scroll box and scroll arrows of a scroll bar.

scrollbarShadowColor

Specifies the color of the bottom and right edges of the scroll box and scroll arrows of a scroll bar.

scrollbarTrackColor

Specifies the color of the track element of a scroll bar.

styleFloat

Sets or retrieves on which side of the object the text will flow.

tabStop

Sets or retrieves whether an element behavior can receive focus and participate in the tabbing sequence.

textAutospace

Specifies the autospacing and narrow space width adjustment of text.

textDecoration

Specifies a value that indicates whether the text in the object has blink, line-through, overline, or underline decorations.

textDecorationLineThrough

Sets or retrieves a Boolean value indicating whether the text in the object has a line drawn through it.

textDecorationNone

Sets or retrieves the Boolean value indicating whether the textDecoration property for the object has been set to none.

textDecorationOverline

Sets or retrieves a Boolean value indicating whether the text in the object has a line drawn over it.

textDecorationUnderline

Sets or retrieves whether the text in the object is underlined.

textOverflow

Specifies a value that indicates whether to render ellipses (...) to indicate text overflow.

textTransform

Specifies the rendering of the text in the object.

top

Sets or retrieves the position of the object relative to the top of the next positioned object in the document hierarchy.

unicodeBidi

Read/write

Specifies the level of embedding with respect to the bidirectional algorithm.

verticalAlign

Sets or retrieves the vertical alignment of the object.

viewInheritStyle

Sets or retrieves a value that indicates whether the document fragment inherits the CSS styles set in the primary document.

viewLink

Sets or retrieves the document object that supplies content to the master element.

viewMasterTab

This property is not supported for Windows Store apps using JavaScript.

visibility

Sets or retrieves whether the content of the object is displayed.

zIndex

Sets or retrieves the stacking order of positioned objects.

 

Standards information

There are no standards that apply here.

Remarks

The PUBLIC:DEFAULTS element is the declarative form of the defaults object.

See also

Conceptual
Introduction to Viewlink
About Element Behaviors

 

 

Показ:
© 2014 Microsoft