Micro letter applet Pictures components

<!--
Applet picture default width is 320 * 240
mode = "scaleToFill" stretch in the case of image width and height smaller than the default width and height to 100%, the full image is displayed
mode = "aspectFill" image only the short side is 100% displayed, the long sides can be taken
mode = "aspectFit" picture of the long side will be 100% of the displayed image will be fully displayed
100% mode = "widthFix" Adaptive Width Height
mode = "top" does not scale the image to show only the top areas of the image
-->
 
 
 
<view>
<image src="/images/banner.jpg" mode="top"></image>
</view>

Guess you like

Origin www.cnblogs.com/zhangyue690811/p/12381211.html