image
tag is used to render a specified picture, and it shouldn't contain any child component. You can use img
as alias.
Notes: the styles of width
and height
should be specified, otherwise it won't work.
alias: <img>
This component supports no child components.
src
: <string> image source urlresize
: v0.5+ <string> the ‘ScaleType’ of the component. The default value is stretch
, if this attribute is not specified. Possible values are cover
, contain
, each of which has the same meaning with w3c standard.Other attributes please check out the common attributes.
width
: <length> the width of the component. This style should be specified.height
: <length> the height of the component. This style should be specifed.common styles: check out the common styles
position
related stylesopacity
, background-color
etc.common events: check out the common events
click
event. Check out common eventsappear
/ disappear
event. Check out common events<div> <image src="..." ></image> <text>...</text> </div>