Search.../

style

Gets an object containing information about the header's styles.

Description

The following styles can be used with headers:

Type:

StyleRead Only

Was this helpful?

Set the background color

Code Example

Copy Code
1$w("#myElement").style.backgroundColor = "rgba(255,0,0,0.5)";
Get the background color

Code Example

Copy Code
1let bgColor = $w("#myElement").style.backgroundColor;