Compartilhar via


IHTMLCSSStyleDeclaration2 interface

Represents a single Cascading Style Sheets (CSS) declaration block.

Members

The IHTMLCSSStyleDeclaration2 interface inherits from the IUnknown interface. IHTMLCSSStyleDeclaration2 also has these types of members:

  • Properties

Properties

The IHTMLCSSStyleDeclaration2 interface has these properties.

Property Access type Description

animation

Read/write

Specifies shorthand values that define animation properties for object properties identified in the @keyframes at-rule of the IHTMLCSSStyleDeclaration2::animationName property.

animationDelay

Read/write

Specifies the offset within an animation cycle (the amount of time from the start of a cycle) before the animation is displayed for a set of corresponding object properties identified in the CSS @keyframes at-rule specified by the IHTMLCSSStyleDeclaration2::animationName property.

animationDirection

Read/write

Specifies the direction of play for an animation cycle.

animationDuration

Read/write

Specifies the length of time to complete one cycle of the animation.

animationFillMode

Read/write

Specifies whether the effects of an animation are visible before or after it plays.

animationIterationCount

Read/write

Specifies the number of times an animation cycle is played.

animationName

Read/write

Identifies one or more animation names. An animation name selects a CSS @keyframes at-rule.

animationPlayState

Read/write

Specifies whether an animation is playing or paused.

animationTimingFunction

Read/write

Specifies the intermediate property values to be used during a single cycle of an animation on a set of corresponding object properties identified in the CSS @keyframes at-rule specified by the IHTMLCSSStyleDeclaration2::animationName property.

backfaceVisibility

Read/write

Gets or sets a value that specifies whether the back face (reverse side) of an object is visible.

breakAfter

Read/write

Gets or sets the column-break behavior that follows a content block in a multi-column element.

breakBefore

Read/write

Gets or sets the column-break behavior that precedes a content block in a multi-column element.

breakInside

Read/write

Gets or sets the column-break behavior that occurs within a content block in a multi-column element.

columnCount

Read/write

Gets or sets the optimal number of columns in a multi-column element.

columnFill

Read/write

Gets or sets a value that indicates how the column lengths in a multi-column element are affected by the content flow.

columnGap

Read/write

Gets or sets the width of the gap between columns in a multi-column element.

columnRule

Read/write

Gets or sets a shorthand value that specifies values for the IHTMLCSSStyleDeclaration2::columnRuleWidth, IHTMLCSSStyleDeclaration2::columnRuleStyle, and the IHTMLCSSStyleDeclaration2::columnRuleColor of a multi-column element.

columnRuleColor

Read/write

Gets or sets the color for all column rules in a multi-column element.

columnRuleStyle

Read/write

Gets or sets the style for all column rules in a multi-column element.

columnRuleWidth

Read/write

Gets or sets the width of all column rules in a multi-column element.

columnSpan

Read/write

Gets or sets the number of columns that a content block spans in a multi-column element.

columnWidth

Read/write

Gets or sets the optimal width of the columns in a multi-column element.

msGridColumn

Read/write

Gets or sets a value that specifies in which column of the grid to place the object.

msGridColumnAlign

Read/write

Gets or sets a value that specifies the horizontal alignment of the object within the grid column.

msGridColumns

Read/write

Gets or sets one or more values that specify the width of each grid column within the object.

msGridColumnSpan

Read-only

Gets or sets a value that specifies the number of columns of the grid that the object spans.

msGridLayer

Read/write

Do not use. This property's functionality has been replaced by the IHTMLRuleStyle::zIndex property, and is no longer recognized by Internet Explorer. To ensure compatibility in the future, applications using this property should be updated accordingly.

msGridRow

Read/write

Gets or sets a value that specifies in which row of the grid to place the object.

msGridRowAlign

Read/write

Gets or sets a value that specifies the vertical alignment of the object within the grid row.

msGridRows

Read/write

Gets or sets one or more values that specify the height of each grid row within the object.

msGridRowSpan

Read/write

Gets or sets a value that specifies the number of rows of the grid that the object spans.

perspective

Read/write

Gets or sets a value that represents the perspective from which all child elements of the object are viewed.

perspectiveOrigin

Read/write

Gets or sets one or two values that represent the origin (the vanishing point for the 3-D space) of an object with an IHTMLCSSStyleDeclaration2::perspective property declaration.

transformStyle

Read/write

Gets or sets a value that specifies how child elements of the object are rendered in 3-D space.

transition

Read/write

Gets or sets one or more shorthand values that specify the transition properties for a set of corresponding object properties identified in the IHTMLCSSStyleDeclaration2::transitionProperty property.

transitionDelay

Read/write

Gets or sets one or more values that specify the offset within a transition (the amount of time from the start of a transition) before the transition is displayed for a set of corresponding object properties identified in the IHTMLCSSStyleDeclaration2::transitionProperty property.

transitionDuration

Read/write

Gets or sets one or more values that specify the durations of transitions on a set of corresponding object properties identified in the IHTMLCSSStyleDeclaration2::transitionProperty property.

transitionProperty

Read/write

Gets or sets a value that identifies the CSS property name or names to which the transition effect (defined by the IHTMLCSSStyleDeclaration2::transitionDuration, IHTMLCSSStyleDeclaration2::transitionTimingFunction, and IHTMLCSSStyleDeclaration2::transitionDelay properties) is applied when a new property value is specified.

transitionTimingFunction

Read/write

Gets or sets one or more values that specify the intermediate property values to be used during a transition on a set of corresponding object properties identified in the IHTMLCSSStyleDeclaration2::transitionProperty property.

 

Requirements

Product

Internet Explorer 10