Export (0) Print
Expand All

Methods

This section contains a list of Document Object Model (DOM) style methods.

In this section

MethodDescription

addImport method

Adds a style sheet to the imports collection for the specified style sheet.

addPageRule

Not implemented. Creates a new page object for a style sheet.

addRule method

Creates a new rule for a style sheet.

appendMedium

Adds a medium to the end of the current list. If the medium is already used, it is first removed.

webkitConvertPointFromNodeToPage

Converts a point pt object from CSS node coordinates to page coordinates.

webkitConvertPointFromPageToNode

Converts a point pt object from page coordinates to CSS node coordinates.

createStyleSheet method

Note   createStyleSheet is no longer supported. Starting with Internet Explorer 11, use document.createElement('style'). For info, see Compatibility changes.

Creates a style sheet for the document.

deleteMedium

Deletes a medium from the current list.

deleteRule (CSSMediaRule Object)

Deletes a rule from the media block.

deleteRule (styleSheet Object)

Deletes a rule from the style sheet.

getComputedStyle

Returns a currentStyle object containing the Cascading Style Sheets (CSS) settings that are applied to the specified element or a pseudo-element related to the specified element.

getExpression method

This element is obsolete and should no longer be used. Retrieves the expression for the given property.

getPropertyPriority

Gets the priority of a CSS property if the priority is explicitly set in the current declaration block.

getPropertyValue

Gets the value of a CSS property if it is explicitly set within the current declaration block.

insertRule (CSSMediaRule Object)

Inserts a new rule into the media block.

insertRule (styleSheet Object)

Inserts a new rule into the style sheet.

item (CSSmediaList Object)

Gets the medium at the position number that is indicated by an index in the current list.

item (pages Collection)

Retrieves an object from the pages collection.

item (rules Collection)

Retrieves an object from the rules collection.

item (styleSheets Object)

Retrieves an object from a collection.

msGetPropertyEnabled

Returns whether a given property in the style object is enabled.

msLockOrientation

Forces the rendering of the page into one (or several) specified way(s).

msPutPropertyEnabled

Sets whether a given property in the style object is enabled.

recalc

This element is obsolete and should no longer be used. Recalculates all dynamic properties in the current document.

removeExpression method

This element is obsolete and should no longer be used. Removes the expression from the specified property.

removeImport method

Removes the imported style sheet from the imports collection based on ordinal position.

removeProperty

Removes a CSS property if it is explicitly set within the current declaration block.

removeRule method

Deletes an existing style rule for the styleSheet object, and adjusts the index of the rules collection accordingly.

setExpression method

This element is obsolete and should no longer be used. Sets an expression for the specified object.

setProperty

Sets a property value and priority within the current declaration block.

msUnlockOrientation

Disables the current orientation lock applied to the screen.

msZoomTo

Scrolls and/or zooms an element to its specified coordinate with animation.

 

 

 

Show:
© 2014 Microsoft