Any styling properties supported by the HTML Element can be supplied in the assigned value, just like inline style. Example 1 – Change Style of Element In the following example, we shall get reference to an HTML DOM Element using document.getElementById () method, and change its style value,

5133

Container for vector feature rendering styles. Any changes made to the style or its children through set*() methods will not take effect until the feature or layer that 

For example, element.style.backgroundColor = "red". A style declaration is reset by setting it to null or an empty string, e.g., elt.style.color = null. 2019-04-23 The HTML