Documentation

BX.style

string|DOMNode 
BX.style(
 DOMNode node,
 string property[,
 string value]
);

The function allows to retrieve the current property style value for the node or specify it in the value. Property is specified in the CSS-notation (for example, 'margin-right')

Example

BX.style(document.body, 'padding', '200px 100px');
alert(BX.style(document.body, 'padding-top')); //200px


© «Bitrix24», 2001-2022
Up