# Background The attributes in this topic are used to set the background color of a component.
|
repeat?: ImageRepeat |
src: image address, which can be the address of an Internet or a local image. (SVG images are not supported.) repeat: whether the background image is repeatedly used. By default, the background image is not repeatedly used. |
||
|
} | ImageSize |
Width and height of the background image. When the input is a {width: Length, height: Length} object, if only one attribute is set, the other attribute is the set value multiplied by the original aspect ratio of the image. By default, the original image aspect ratio remains unchanged. |
||
|
} | Alignment |