|
Sets or retrieves a style attribute value for the called element.
virtual std::string element::style(1st Variety
css_property prop
);
virtual bool element::style(2nd Variety
css_property prop,
const std::string& value
);
A css_property enumerator. For a list of css_property
enumerators, see Xport Usage: Enumerations.
A string value which represents the value of the accompanied css property.
In the first variety, returns the string value of the specified property if called on an element object and the style attribute is present within the
element, or an empty string otherwise. In the second variety, returns true
if called on an element object and the style is set
successfully, false
otherwise.
The first variety is used to retrieve a css property value which is set in the element's
style attribute. If the specified property is
not present, returns an empty string. The second variety is used to set the css property of an element to the specified value within the element's
style attribute.
Constant