Constructor
new Img(src, alt, objectFit, aspectRatio)
Parameters:
Name | Type | Description |
---|---|---|
src |
string | src attribute |
alt |
string | alt attribute |
objectFit |
string | CSS object-fit property |
aspectRatio |
string | number | CSS aspect-ratio property |
Classes
Members
src
Sets src attribute.
src
Gets src attribute.